Powershell Variable Scope In Function Excel