Shell/Bash: powershell script path Example

By

Shell/Bash Example: This is the "powershell script path" Example. compiled from many sources on the internet by SimpleTutorials.org

powershell script path

# Powershel 3+
$PSScriptRoot

# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition

Powershell PATH

# List Paths
$Env:Path



* Summary: This "powershell script path" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others