Add support for calling custom tasks on ManageScheduledTasks

Signed-off-by: Suki <suki@missallsunday.com>
Avoid calling in_array() fi theres no need for it

Signed-off-by: Suki <suki@missallsunday.com>