Scripting ESRI ArcCatalog context menu command 'Register with Geodatabase'. Works with SDE GDB.