https://bugs.winehq.org/show_bug.cgi?id=47790
--- Comment #3 from Jeff Smith whydoubt@gmail.com --- This should be fixed by commit ceb32f668360ef51b932fa6350858a6b8d2d26ec , available in release 4.19. The fix makes wine behave more like Windows PowerShell as described in the previous comment.