Powershell Set Global Variable In Mysql Query Multiple Tables