how to echo path in powershell code example
Example 1: powershell script path
# Powershel 3+
$PSScriptRoot
# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Example 2: how to get environment variables in powershell
#Windows Powershell
cd Env:
Get-ChildItem