System must allow exec of PS scripts: start PS console with Admin priviledges and execute set-executionpolicy remotesigned Usage: .\ServiceMonitoring.ps1 -collector -task -service The result will be shown in PS console For more information, execute .\ServiceMonitoring.ps1 Aggregation type for the Task must be set to MIN or MAX.