. .\myScript.ps1
runs .\\myScript.ps1 in the current scope making any functions, and variable available in the current scope.
.\\myScript.ps1