Why do you beed ChatGPT for this, this is like two or three lines of code. That you then add to cron.

This is one minute of human work.