psql -a -h $PostgresHostName -p $PostgresPortNum -U $PostgresuserName -d $PostgresDBName -e -f $SQLFilePath 2>&1 if (($LASTEXITCODE -eq 0) -And ($Error.Count