Example Powershell Script With Functions In Sql