Powershell Variable Scope Script