Dot sourcing operator
suggest change. .\myScript.ps1
This runs .\myScript.ps1 in the current scope, so functions and variables it creates are available in the current scope. & .\myScript.ps1 runs the same file in its own scope instead.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents