I have a command that I need to execute from Git Bash
in Administrator
mode.
Is there a way I could create a Windows Batch
file or PowerShell
to do these steps?
At the moment I'm doing the following:
- In the Windows Explorer GUI, right click on Git Bash, and select, 'Run as administrator'.
- Type the command
kubectl port-forward svc/camunda-operate 8081:80 -n camunda
and press ENTER.
I've found, here, a way to launch Git Bash
from cmd.exe
, but I was unable to get it running elevated, and pass the command to Git Bash
.