Powershell Create Function Sql Server