view to path powershell

C++
$Env:Path -split ';'$Env:Path
Source

Also in C++: