Powershell Variable Scope In Function In Excel