Why do you want to write registry keys?
Can you give an example of an registry key that you would want to write ?
Also would this registry key and value change depending on the computer or is it always a fixed value ?
If you just want to write a registry key/value in boot.wim without modifying it, there may be others ways. You dont necessarily have to use Grub4Dos to do that for you.