posts-powershell

Use $PSScriptRoot to Load Resources

Beginning in PowerShell 3.0, there is a new automatic variable available called $PSScriptRoot. This variable previously was only available within modules. It always points to...

  • Written By: ps1
  • Last Updated: April 22, 2025
  • 3 minutes read