I need to monitor the installed services and their status. I.E. if they are started or stopped.
I will take the data and use a separate script to make alert notifications.
Here are a couple of ways to do this.
Get-Service | select DisplayName, Name, Status | sort status -Descending | Export-Csv -Path $env:COMPUTERNAME".xls"
There is quite a bit of difference in the above output, I personally use the PowerShell example.