Split the task into a script