My .bat file contains
wsl.exe && cd /mnt/d/ && ls
pause
The .bat file opens Windows Subsystem Linux (Ubuntu 20.04.4, WSL 2), execute wsl.exe command, and then... nothing happens.
Strangely enough, when I copy-paste the contents of the .bat file into CMD, everything works nicely.
Any help is welcome.