Powershell Script Create Function Postgresql Data