Hmm, I just tested the script again and it works for me. Type the following command and it should echo a number in the window you type it in. That will test if the script is able to see if a program is running.
//echo -a $chkprocess(explorer.exe)
I can't think of anything else in particular that would stop this script from working.