Postgres Set Variable In Powershell Foreach Next Item