Powershell Create Function Sql