Do you have an IT department? Go explain to them how you fucked up and used a Windows key from a pirate website on your work laptop and risked the company's reputation and a possible lawsuit from a tech giant and how you wish to unfuck things before it's too late or lose your job.
Fucking hell man. That was a dumb move. I hope you learn a lesson from this.
Licensing and activation are separate, and only loosely related. If you are at anything resembling a large org, they don't even use the HWID or OEM key- they will be using an internal KMS server.
It really sounds like you have way more permissions than you should have on a work device. You should've hit a wall even attempting to install Win11 (I can confirm that my work blocks this very effectively). I also question why you would want to do that at all. I'm also not sure you needed to do anything to activate- I believe 10 and 11 use the exact same HWID/keys/etc
Use the same script to unlock Pro. Windows is automatically picking Home because it was most recently activated that way. You could also add a file onto the USB you used to install Windows with to force to show you a selection menu of various Windows variations (ie Home, Pro, Education, etc) and then pick Pro there. The preinstalled key should still be on the machine.