Testing SCOM scripts in Powershell ISE – ‘MOM.scriptAPI’ doesn’t return property bag
By Chris Gibson26 January 2016
I was going to write a blog post on this, as its annoying as heck, but I found this great Article. However, to sum it up The Powershell ISE will never return a property bag.Always test your scripts in the console