I want to provide input to an application that is attached to a different console. For example, in the following picture, how would I write to the input of the console on the left-hand side from the console on the right-hand side?
Sounds like you want IPC (Inter Process Communication) and there's many ways to do that. You can see MSDN for a more detailed explanation of your options.