Ever wanted to locate the path of your current PowerShell script? This can be useful to call other scripts or resources in the same folder.
To determine the folder your current PowerShell script is located in, try this:
Split-Path -parent $MyInvocation.MyCommand.Definition