I have found the script body that I think will work but when testing it I get the following:
"The term 'Test-MapiConnectivity' is not recognized as the name of a cmdlet, fun
ction, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again."
Is there a way of installing the cmdlet on the OpManager server or copying it across to a particular directory?