Hey all

I am in the process of making a powershell unit monitor, and stumbled upon, the lack of support for multiple samples before alerting.

Can anyone point me in the right direction?

I am counting files in a folder, if it exceedes 100 for more than 2 minutes it should alert.
It has to be over a certain period of time, otherwise I could just have the script run every 2 minutes.

Stephen Skouboe selected answer