I'm trying to figure out how I can start an external program (for example RunProgram("cmd.exe") ) and then use stdin and stdout to pass data between the external program and my PB program. (I'm actually trying to use PB to interactively control an SSH terminal session using PuTTY (or Plink) as the external program.)
I have found PB examples that seem pretty straight forward using stdin/stdout when communicating to a PB console but not to an external program. Is there a different way I can start the external program (i.e. with WinAPI) that would allow me to use the stdin/out or is there a way to redirect the stdin/out to communicate with the external program started with RunProgram()?
Thanks in advance for any help on this. (Even some general pointers to best approach would be appreciated)

Best Regards,
Mark