Hi Team,
How to call PowerShell script from Python.
I Have installed Python 3.7 and Powershell 7 version
I am running the below python script to call a PowerShell script
I cannot tell nothing about Python but when you run
pwsh /?
in a CMD or PowerShell console it will tell you the proper syntax to call PowerShell with a script file.
BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance How to format code in PowerShell.org