Updated example UI Automation script