Powershell Custom Function In Sql