Hi, I'm Anvar, I'd be glad to help you today on this
To transfer a retail version of windows 10 to a new device suggested method is sign in old PC with Microsoft account and transfer the license to new device using same Microsoft account, Kindly follow the instructions in the link below
https://support.microsoft.com/en-us/windows/rea...
The commands you have tried is to reveal product key embedded in BIOS for OEM editions
Kindly use below store app to get installed product key
https://apps.microsoft.com/store/detail/showkey...
Hope this helps. Let us know if you need further assistance.