This is where the magic happens. Instead of coding it by hand, use the Office Customization Tool. This web interface allows you to: Select between or 64-bit . Pick your suite (Microsoft 365, Office 2021, etc.).
Go to the Microsoft Download Center and grab the ODT. When you run the .exe , it will extract two main components to a folder of your choice: office c2r install