Execute PS in GO

Hello,

I am new in GO and i want to execute my PowerShell script in GO. i tried number of example but do not get any success. That is the reason i am open this forum to discuss

  • Is it possible to execute our own PowerShell Script in GO ?

  • If yes, then how can i execute PS in GO?

Please let me know if you need more details on this.
Thanks in advance.

Regards & Keep Smiling,
Guru

You could use the os/exec.Command function to run powershell.exe to run your script.

1 Like

I found this wrapper in google

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.