I dug a bit deeper in this subject and I can understand now why it acts
different than regular shells
Everything in PowerShell are objects, so the output streams are objects too.

The article on Keith Hill's blog explains the details.

http://keithhill.spaces.live.com/blog/cns!5A8D2641E0963A97!811.entry

So basically the powershell program needs to transform it output from an object
stream to a a bunch of string data by applying a pipe to output-string to it.

This is a bit difficult in PSPad since the pipe character seems to be eaten up
by the syntax highlighter editor. I'm trying to write a wrapper compiler batch
file to circumvent this problem.

-- 
<http://forum.pspad.com/read.php?2,44298,44440>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem