The weekly schedule helper can be set up from the UI. This then can be used to automate things.
Alternatively there’s this: