REGEDT32 and REGEDIT have command line capability. Try that first. I haven't used the REGEDT32 command line in a few years, so I'll let you research it.
How can I schedule a whole registry backup/export to run every night?
(the System State in the Windows Backup utility isn't useful cuz I only want a registry backup)