I created a file in Ubuntu called bash_test_01.sh containing the command echo "cmd is executed"
in Powershell, if I run
>wsl
$cd /home
$/home/adm_difolco_e/bash_test_01.sh
I get
cmd is executed.
However if I run
wsl -e /home/adm_difolco_e/bash_test_01.sh
I get
<3>WSL (31608) ERROR: CreateProcessEntryCommon:570: execvpe /home/adm_difolco_e/bash_test_01.sh failed 8<3>WSL (31608) ERROR: CreateProcessEntryCommon:579: Create process not expected to return