Hello,
scheduled task (cron job) should be set up in your hosting control panel.
Details depend on exact panel software you have installed on your host, but normally there should be a special menu item for cron tasks where you specify how often to run task and command line to run,