PowerShell Variable Scope Guide: Using Scope in Scripts and Modules
PowerShell uses variables to store information that can be useful later on. Variables also make it easy to change values in multiple places by changing the variable’s definition. You can…