Powershell Variable Scope In Function Appsheet