How do you get the output type from a powershell script with System.Management.Automation? - C#