posts-powershell

Using Solid Alternatives for $MyInvocation

Lines like $MyInvocation.MyCommand.Definition can be useful to determine the folder in which the current script is stored, i.e. to access other resources located in the...

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