Without the -MonitoringContext switch, the script will return the results and can send an email containing the details. With ...

Without the -MonitoringContext switch, the script will return the results and can send an email containing the details.  With -MonitoringContext, the script will raise events in the Application event log for each database detailing whether or not it has sufficient healthy copies (MSExchangeRepl event 4114 if the database has sufficient copies, MSExchangeRepl event 4113 if it does not).  These events are used by the Exchange management pack in SCOM to monitor whether databases have sufficient copies.  In this mode, the script will run its checks multiple times and only raise the events if it sees the conditions persist before raising the events.