Powershell Script Variable Scope Programming