I need to write a .NET (C# or IronPython) console application that starts a program on a remote machine, which reads from the parent's standard input and writes to the parent's standard output. The goal is that input written to the local application gets written to the remote application, and that output from the remote application gets written to the local application's output.
How can I accomplish this? I've looked at WMI, through System.Management, but not sure how to attach the stdin/stdout streams.