Implemented Standard Input and Output redirection in ExternalProgram