thanks for the post. I suspect the issue is related to where the key is being put. Since you are not running the script as the end user that will use the software it is likely not making it's way into that user's HKCU hive.
Have you tried using the \M switch? Since your KACE user has Admin rights \M should put it in HKLM and then be available to all your users on that machine.
Another option would be to run the command (the one that worked at the command prompt) as the user who will use the Edito, so a login or other script that runs as that end user.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.