EDIT: Just found out this is only an issue from a PowerShell console. It seems to work from cmd.exe. Investigating that more...
In a Windows GUI (/SUBSYSTEM:WINDOWS) app,