a script can only be run with some kind of interaction, otherwise it's just a flat file.
The interaction can either come from a user running a CLI or clicking on a web site, or from an automated cron/scheduled job.
as an alternative, you could make a page and if your machine is on 24/7 then set up the cron to trigger that page at the desired time