dude,
since you're also the site administrator, you shouldn't post no sense scripts.
a) If you use the shell, you'll have problems both closing and returning messages.
b) System.DoesProcessExist() is not a valid command in AMS.
c) With this code, you won't receive any return messages...