Automation script to download and install application