Postgresql Find Substring In Powershell Script Not Running