How to get terminal output from a GUI process that spawns its own terminal - C#