Hi
-criteria is more efficient than where ...
Try the following to list all the alerts that meet the requirement (these are ALL single quotes ' just multiple times):
get-alert -criteria 'ResolutionState=''0'' And Name=''Script Based Test Failed to Complete'''
If that works for listing, add on each script name ... then try adding the resolve alert - I have just tested this and it works for me .. as usual with scripting .. use at own risk!
Cheers
Graham
View OpsMgr tips and tricks at
http://systemcentersolutions.wordpress.com/