I am trying to create a web api that will convert the output of a powershell command to JSON. Does anyone know of a library that can do this or convert a PSObject to JSON? The PSObject properties changes depending on the command that generates it. I tried passing the PSObject to "ConvertTo-Json" but I got extra object info.I am trying to create a web api that will conve