title: Can I use PowerShell instead of AppCmd.exe to monitor IIS state?
body: <p>I want to write a script that uses appcmd.exe to monitor IIS state - 
  restart a site if it's down and/or restart IIS if it's down.</p>
  
  <p>Can this be done with powershell? is there a more natural/easier method of doing this?</p>
  
  <p>Thanks :-)</p>