Powershell Variable Scope In Function Sql Example Code Java