I don't think you'll get official support here for that, but AFAIK, it's not too difficult...

have a look in /usr/local/cpanel/whostmgr/docroot/cgi at some of the other examples. You'll see the name of the file is important, and there is an important line near the top of the script. I think that's about it