PowerShell runs programs such as IpConfig and WhoAmI just as cmd would. However, I am stumped trying to run MpCmdRun.exe
Clear-Host
Set-Location "C:\Program Files\Windows Defender"
Get-ChildItem
mpcmdrun.exe
Result
Error:
mpcmdrun.exe : The term ‘mpcmdrun.exe’ is not recognized as the name of a cmdlet, function, script file, or operable
program.
You are doing
mpcmdrun.exe. You have to do.\mpcmdrun.exeas the current folder.is not in PATH in Powershell unlike in cmd.PS:
I wonder if you read the entire message that Powershell would have spit out when you did as you said:
PPS:
The other commands ran because they were in PATH.