Added the first cut of the scheduled tasks script, this is just a rough version, does not currently work