Only use WriteConsoleW if the intended output is the console