automation scripting example