Use the ICISite interface CreateCommand method to create a new custom command for a site and to open the ICICommandSettings interface.
Signature:
HRESULT CreateCommand(
[in] BSTR bstrName,
[out, retval] ICICommandSettings **prop);