Cannot write scripts in Automation 