Cmd
where
C:\Users\X>where pingC:\Windows\System32\PING.EXEC:\Users\X>
Powershell
Get-Command
PS C:\Users\X> Get-Command pingCommandType Name Version Source----------- ---- ------- ------Application PING.EXE 10.0.1776… C:\WINDOWS\system32\PING.EXEPS C:\Users\X>