Main script

This is  a script you want to call / cron.
Make sure to set the right path for installpath (on line 14)