Powershell Variable Scope In Function On Calculator