I have short C# code which fires an invalid command using powershell.
using (PowerShell PowerShellInst = PowerShell.Create())
{
PowerShellInst.AddScript("abc");
Collection<PSObject> PSOutput = PowerShellInst.Invoke();
Console.WriteLine(PSOutput);
}
Output is not printing anything. when same command fire using actual powershell then following output is printed.
How can I get error output in C sharp code?

abcreferring to?