@eric the problem in cmd I mentioned was a syntax error about the quotes, else
`wine cmd /C "python -c print(4)"` works fine, so does redirecting to a file
what did you mean by failing when running in shell console ?
if its unrelated to GetFileInformationByHandle it could be treated separately from this MR