HWO TO GET PATH IN POWERSHELL code example
Example 1: powershell script path
# Powershel 3+
$PSScriptRoot
# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Example 2: view to path powershell
$Env:Path -split ';'