Using a payload-level custom script in services