Just a quick share on how to work with command line output in powershell. I was working with an organization that is still running Windows 7 and they were implementing some applications that caused some concern about WMI performance. This post from the Microsoft Ask Performance Team details how to move the service into its own process. I wrote this powershell script to check the configuration of the service as in Configuration Manager Compliance Item.

If the return is 20 then the service is configured as a shared process. If the return is 10 then the service is configured as its own process. If the return is 30 then the OS does not have the issue.

I set my CI to be compliant if the value returned was 10 or 30. Armed with the compliance data we were able to target systems for remediation.