Please refer this script to download and install the application and if the application got installed successfully, a mail will be sent to the given email id.
URL: Give the direct download link of the software to be downloaded
sCMD: Give the silent installation command
AppName: Give the name of the application as in control panel
emailto : Give the receiver mail id
emailfrom :Give your/ sender mail addrees
Password : Password of sender mail address
AppName = "CCleaner"