Tony Bierman first wrote about this here: http://sharepointsolutions.blogspot.com/2006/09/extending-stsadmexe-with-custom.html He's got some good examples and there are links to others in the comments. Andrew Connell also released some STSADM add ons for WCM using this technique here: http://www.andrewconnell.com/blog/articles/MossStsadmWcmCommands.aspx