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 use a special way to bypass it:
Get-Content "PS1scriptfullpath.ps1" | Powershell-NoProfile -
It pipes the content of powershell script to powershell.exe and executes it bypassing the execution policy.