So I have a program I'd like to run in Windows PowerShell. In cmd I just type in script.cmd
and it'll run the script. In PowerShell I apparently have to do ./script.cmd
.
BASH behaves similarly by default. To change BASH's behavior you need to do export PATH=$PATH:.
and then script.sh
will work instead of just ./script.sh
.
My question is... how can I make script.cmd
work in PowerShell? Do I have to do something similar to export PATH=$PATH:.
? I did echo $PATH
in PowerShell but that didn't output anything..