My restart scripts are here. Obviously edit for you own caddy path. I have a task to run shutdowncaddy.bat every 5 hours