Powershell Core 6.2 Cookbook
上QQ阅读APP看书,第一时间看更新

Variable scoping

Scopes are important in your day-to-day scripting and they control the visibility of your variables, functions, and aliases. While PowerShell does a great job of handling scopes automatically in a way that feels very natural to the user, you can also use scopes implicitly in your scripts.