I am trying to run a cmd file that calls a PowerShell script from cmd.exe, but I am getting this error:
cmd
cmd.exe
Management_Instal
You can bypass this policy for a single file by adding -ExecutionPolicy Bypass when running PowerShell
-ExecutionPolicy Bypass
powershell -ExecutionPolicy Bypass -File script.ps1