You do not need to redirect the script console output as the script
writes to the same console as your host process have attached. Thus if
you want to catch console output you need to do it in your host
process. Example is in the the <cs-script>/Samples/runScript.cs. While
this sample demonstrates not hosting the script but rather running it
as a separate process it still shows the console redirection
technique.
Saying that capturing console seems very wrong if you are hosting the
script engine. Because if you do then you can easily exchange the data
between script and host in any direction without resorting to such and
exotic technique as the console output capturing.
See <cs-script>\Samples\Hosting\HostingWithInterfaces\Host.cs sample
and the whole Hosting directory for the "inspiration".
Cheers,
Oleg