I'm wanting the same functionality within PowerShell that where.exe gives me.
I've tried to find a cmdlet alternative to the standard where executable but can't find anything.
So by default, I resulted into trying to execute the where command within PowerShell but there is an Alias mapped to that command.
PS C:\> Get-Command where CommandType Name Version Source ----------- ---- ------- ------ Alias where -> Where-Object
Is there a way to execute where within PowerShell or is there a better way to achieve the same result?
Get-Command notepad -CommandType Application& where.exe, e.g.& where.exe /R C:\Windows notepad.exe&character is need in a case like this.