How can cmd and powershell commands be executed from Go with admin privilege (run as admin)? Note that the execution of cmd and powershell with admin privilege is clear, but how to specify that the commands executed by them also have admin privilege is questionable. For example how can we run this powershell command in go as administrative:
Stop-Process -ID 11111 -Force
or this command:
taskkill /IM example.exe /F