scripting automation examples