Hello @Random_0100! I made a script similar to yours to auto restart the server but with a few extra features. I put a download link to your resource “reboot” that prompts the users in game a message to let them know about the restart. I also added a link to this topic.
My topic: [Release] Windows Auto Restarter/Server Manager v1.1
If you would like that I remove one or both links, please let me know.