I just installed WSL from the windows store and when I run a command such as gcc I have to write gcc.exe in order to run it. When using which
gcc
gcc.exe
which