Run shell scripts on Powershell (without WSL or WSL2)
Prerequisites:
I assume you have Powershell installed (you will not need the hassle of installing WSL or WSL2 for this)
The easiest solution is to install Git first, which by default (at the time of this post) installs bash and sh binaries.
The binaries can be found under “C:\Program Files\git\bin\”
Steps:
Add the path of these binaries to Windows Environment Variables:
Search “Edit the system environment variables” on Windows search bar and open it.
Click on “Environment Variables” button
On the top pane, click on “Path” such that it is highlighted in blue.
Click “Edit”
Click “New”
Copy-paste “C:\Program Files\git\bin\”
Then click “OK” until the environment variables window application is closed (“OK” 3 times)