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
I found this line worked best for one of my Windows Server 2008 R2 servers. A couple of others had no issues without this line in my PowerShell scripts:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force -Scope Process