Powershell Script Create Function Sql