Greg,
Attached is the script and a pretty self explanatory help file.
I installed this program (free and just runs in the background after installing):
http://strawberryperl.com
Open your command prompt (make a shortcut!) and see where the default folder is. That is where you place the script file. Then just type in restart_guiding.pl
If PHD2 is running everything from that point is automatic. You can view what restart_guiding is doing in the command prompt window.
For me it works great!
Peter