add an automation script