You may have to copy/paste the GetRegister() function from the header file and put it directly into your script.
At least in the scripter, when debugging, it errors out and will not "find" that function in the header file.
It MAY work if calling from the MDI, but, I have not tested that.