powershell get path environment code example
Example 1: powershell script path
# Powershel 3+
$PSScriptRoot
# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Example 2: powershell print environment variables
#pws
$Env:path
Get-ChildItem env