Does it happen to be a anti-virus product, If so there is an option to automatically download and install updates and there is that option in many more software products. Just search through the settings, It will be alot easier that writing a script to do it. If you carn't find the option to automatically download it; you could always try
www.google.com