One of the great advantages of OpsMgr 2007 against MOM 2005 is that you can easily test OpsMgr 2007 scripts from the command prompt. Just go to the C:\Program Files\System Center Operations Manager 2007\Health Service State and open a command prompt.