Include relative files in PowerShell March 19, 2023 by Tarik You can utilize the $PSScriptRoot parameter like this: . "$PSScriptRoot\script.ps1"