Handling results of calling Powershell - Multivalued and string arrays.

When calling PowerShell from managed code, you need to be aware of what is being returned and to not process properties returned always as strings. When you get information you were not expecting or no info returned from the call, you should look at TypeNameOfValue and see what is returned – this often gives a…

3