To find the script execution time:
To analyze the time taken for the above scripts, execute the above scripts as mentioned below once again, and share screenshots of time taken in addition to script output from the above scripts:

Measure-Command {<Command>}
- Based on the time taken, increase the Polling interval and Timeout values for the particular monitor. When the polling interval is increased, the health and availability will be checked only at that particular time interval.
- For Exchange Online monitor if huge data is found and takes a very long time, set the timeout value accordingly, and set custom polling interval by following the below steps:
- Go to Admin -> Performance Polling -> Optimize data collection
- Choose Monitor Type as Exchange Online.
- For both Top Mailboxes By Size and Inactive Mailbox Users metrics, choose the Collect data at customized time interval option.
- Set the value as 24 Hrs to fetch this data once a day and click Save.
If the issue still persists share the above outputs, screenshots of the above-mentioned page, monitor information page, edit monitor page, and the latest SIF for analysis.
Exchange Online errors
- Refer to the steps given in this KB.
SharePoint Online errors
- Refer to the steps given in this KB.
Microsoft Teams errors
- Refer to the steps given in this KB.