When executing some command(let\'s say \'x\') from cmd line, I get the following message: \"....Press any key to continue . . .\". So it waits for user input to unblock.
The program doesn't continue because it is blocked expecting input from the user.
An option is to launch the outer process in a separate thread, or use threads sharing the Process p in order to be able to write to its stream.