RH can not be automated in any usual way. It does not accept
whatever command line commands and does not provide whatever API
that can be used for this purpose. Really unbelievable for the
'industry standard in help authoring'
, but true.
You can use a tool like Automate from unisyn.com or similar
to start RH and then automatically click buttons, menu commands
etc. to do what you need