The syntax to open a project from command line on Windows is path/to/WebStorm.exe path/to/your/project - see -with-webstorm-features-from-command-line.html#d279626e72. You can add %WebStorm installation directory%/bin to your system %PATH% to be able to run WebStorm using WebStorm command instead of entering a full path to exe.
After it drag & drop folder which you want to use in terminal windows. In WebStorm you can use "open in terminal" from context menu, but in Rider only drag & drop for open in wsl terminal with special path.
@Jens Martsch - dotnetic, I had set it up some years ago under win7 with a (sort of) proxy batchfile. It is a single file, that I pointed the modules default protocol settings to. Don't know if this can be of help for you, as I hadn't read all the posts here. But here is the windows batchfile that I use(d):
df19127ead