In the same thread, @david.wylie talked about using cron if you were running linux.
If so you could just run a cron job that kills your currently running script and then starts a new one afterwards. Either using the cli directly, a bash script, or a python program that parses the output of something like ps aux to find the PID of your script and kill it.