Powershell Variable Scope In Function Int