I'm running the following command in PowerShell wsl pipenv run python ~/test.py and receive the following error /bin/bash: pipenv: command not found. If I launch WSL/Ubuntu, I can run pipenv run python ~/test.py and get a successful output. In PowerShell and Git Bash, I can run pipenv -h and get proper output. Where does WSL look for this command?
On a related note, I can run python ~/test.py and python3 ./test.py when I launch WSL/Ubuntu and get successful output. But from PowerShell, only wsl python3 ~/test.py works. When I run wsl python ~/test.py I receive the same command not found error. What am I missing?