I need to run a Ruby app on a customer computer. It will usually take a couple of days to finish (copies big backup files). The problem is if sleep is enabled, it will interrupt the app. If not the computer will stay on for weeks untill my next visit. Is there some way to prevent sleep during execution and let Windows sleep after?

Any crazy ideas are welcome ;-)