Co-authored-by: Sam Marshall <s.marshall@open.ac.uk>
Copy the CLI scripts from admin/tool/task/cli to admin/cli (schedule_task.php and adhoc_task.php) and rename to scheduled_task.php and to improve in order to use cron_run_inner_scheduled_task.