I\'m having trouble figuring out how to both echo to the standard error stream and redirect the error stream of an executable.
I have come from a Bourne shell and Ko
You probably want this:
$host.ui.WriteErrorLine('I work in any PowerShell host')
You might also see the following, but it assumes your PowerShell host is a console window/device, so I consider it less useful:
[Console]::Error.WriteLine('I will not work in the PowerShell ISE GUI')