powershell which equivalent

C++
Get-Command <command-name>
Source

Also in C++: