Check-Service.ps1

This script checks a Windows service’s health. It can report on CPU utilization, memory, and paging faults. This script uses WMI to check the state and status of the process as reported by WMI. If CPU, Memory, or Fault warning and critical parameters have been provided, the script will also compare the counters obtained from the process with these numbers.