Postgres Set Variable In Powershell Foreach Array Method