Make task-count an optional parameter, defaulting to 1, and get rid of debug code.
Ran a code-formatter to tidy this up a bit
Make sure, via hard-coded magic constants, that this only runs between 8pm and 8am on weekdays, and all day on weekends.