Powershell Variable Scope In Ruby