Using PowerShell to check the status of services