If you want your cmdHook script to display as an option on the search engine administration page, you should follow these guidelines:
Because the search engine Administration Interface does not scan binary files when it looks for cmdHook scripts, write your script in a run-time evaluated language instead of C or another compiled language.
Place the file in PortalServer-base/bin directory.
Name the file cmdHook, followed by an alphanumeric character-string, for example, cmdHook0, cmdHookAlpha, cmdHook12a.
Add a description string to the file and comment it so that it does not affect the execution of the script. For example, #description="My menu choice string".