Can anybody help me how this command would be recognized from powershell? For example the command rm is available. See you screenshot:
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
Try this:
Open Window's File Explorer. Find a file that uses the ".sh" extension. Right-click it and select "Open with". Select "sh.exe" and "Always use...".
Assuming that your PATH variable points to when you have Cygwin installed you should be able to run your shell scripts without running bash.
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.