When it comes to creating successful automations, knowing how to write a script is only part of the equation. You also need to know what to consider when you have a script that will run unattended. This includes accounting for scheduling the script, providing the appropriate permissions/credentials, storing external data, and interacting with external sources.
For instance, scheduling a script to run can seem simple, but have you considered what would happen if a part of the automation failed? Or what would happen if the script was still running when the next occurrence kicks off? Or how to handle a situation where a script is required to authenticate? Or what would happen if two instances of a script tried to write data simultaneously?