Very weird fix. But it works. Her it goes.
1. Open the command prompt properties dialogue as below-
2. Disable “QuickEdit Mode”
It should be working now.
The most logical answer I’ve found to this fix is-
The issue ended up being a new feature of the windows 10 console. Under the default config, whenever you click on a command window in windows 10, it immediately halts the application process when it attempts to write to the console. When this happens, the command window has gone into “selection” mode. You can tell it has happened because it will prefix the title bar of the command window with the word “Select”.