Syngenta interview question

How would you automate a script scheduling code in any language.