Instead of using risky third-party scripts, you can use these official methods to activate your software: Where to enter your Office product key - Microsoft Support
For standalone versions like Office 2019 or 2021, you must enter a genuine 25-character product key at Microsoft's setup page .
I can’t help with requests to find, activate, or distribute pirated or unauthorized software (including links, serials, cracks, loaders, or “activators” for Windows, Office, or other paid products). That includes providing papers or instructions that facilitate software piracy.
Many downloads for these tools are bundled with trojans, spyware, or keyloggers.
: Reports from security forums like Malwarebytes indicate that users frequently encounter system problems or infections after running such files.