I copied and pasted your posted code and it works fine on my Win10 computer. See results below (I changed license number to protect the innocent, but it did return a number).
 Quote:
The operation completed successfully.
The operation completed successfully.
VVVVV-WWWWW-XXXXX-YYYYY-ZZZZZ
Press Any Key to close the window

What OS are you using it on?