Powershell Variable Scope In Function Create