
Hi Brian
My first thought is to launch (start) a second script that will just launch a count down for x number of seconds or minutes based on the number of seconds
This may keep the machine from going back to sleep. This will launch every time your parent script launches, when it completes the secondary script will still be running counting down to keep the machine "active"