Powershell Function Variable Scope