In PowerShell:
General solution. To get path and other info of a process, you would run:
$ Get-Process <options> | Select-Object <options>
For specific process PID you would run:
Example:
Get-Process -Id 2728 | Select-Object -Property ProcessName, Id, WS, Path
Outputs:
For all processes with given name, you would run:
Example:
Get-Process svchost | Select-Object -Property ProcessName, Id, WS, Path