Get-ScriptDirectory
Get-ScriptDirectory
SYNOPSIS
Get the directory of the current script.
SYNTAX
__AllParameterSets
Get-ScriptDirectory
ALIASES
This cmdlet has the following aliases,
DESCRIPTION
Get the directory of the current script. It is better than $PSScriptRoot because it works also when running the script line by line in the console.