Monitor Windows services with Cygwin
Invoke PowerShell commands from within Cygwin:
cmd /c '%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe' -Command "gsv"
And a more general solution would be to create a script powershell.sh
which contains:
#!/bin/bash
set -e
set -u
cmd /c '%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe' -Command "$@"
After which you can run: ./powershell.sh gsv
or whatever commands you need.