Use stream.write in favor of console.log when using printStdout/printStderr