Well Cookie answered your question about restarting a script. About checking if the exe is running, here is the function that I am using for my script IPGet.
code:
function checkProcess(strProcessCaption){
var wbemFlagReturnImmediately = 0x10;
var wbemFlagForwardOnly = 0x20;
var objWMIService = GetObject("winmgmts:\\\\.\\root\\CIMV2");
var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Process", "WQL",
wbemFlagReturnImmediately | wbemFlagForwardOnly);
var enumItems = new Enumerator(colItems);
for (; !enumItems.atEnd(); enumItems.moveNext()) {
var objItem = enumItems.item();
if(strProcessCaption == objItem.Caption) return true;
}
return false;
}