Here is a script that pipes an error message using WSH. It's pretty cool because it doesn't use temp files or reg entries. Try it out and see what you think. If you guys like it, I'll turn it into a UDF.

code:
; Pipe.kix
;
Break On
$shellcmd="%comspec% /c dir *.kix"
$WshShell=CreateObject("WScript.Shell")
$oExec=$WshShell.Exec($shellcmd)

While $Exit<>1
Dim $Output
$Output=ReadAll($oExec)
If $Output=-1
If $oExec.Status=1
$Exit=1
endif
Else
? $Output
endif
Loop

? "Exit Code: "+$oExec.ExitCode

Function ReadAll($oExec)
If Not $oExec.StdOut.AtEndOfStream
$ReadAll=$oExec.StdOut.ReadAll
Exit
endif
If Not $oExec.StdErr.AtEndOfStream
$ReadAll=$oExec.StdErr.ReadAll
Exit
endif
$ReadAll=-1
EndFunction