Script to regenerate mini-scheduler

Is there via a script a way to regenerate the mini scheduler ?
For example :

//Example time between 10h00 and 11h00 28/10/2022
CurrentPlaylist.generate mini-scheduler (from 2022-10-28-10 to 2022-10-28-11)
Automatic Saving pop-up
Remember decision and Replace playlist in the second pop-up

Try to use the events.

There you can auto-generate new database-playlists, but only for the future, not for the past.
Also you can add a button in the playout and insert there an action to generate playlist (as far as I know).

Thank you. Events can’t regenerate several separated hours. That is why I am looking for writing custom scripts for each show of the radio.

@Torben Please could you help us ?