Powershell Create Function Sql Example