Interesting ideas! I will wait until you further developed the installer and you find time to test it. If you need my input during the development, don't hesitate to ask. Once your script is finished, we can think on possible maintenance.
However, I think not everything can be automatised, like e.g. the XHC USB Kext creation. You need to repeatedly manually plug and unplug a USB2.0 device on ALL USB2.0 and USB3.0 ports and check the response in IOREG, which you then use for the HS-port association. Then you have to manually repeat the process with a USB3.0 device on all USB3.0 ports for the SS-Port association. The check of the device ID / Vendor ID's is just a first step, primer to the latter fully manual implementation.
If you have a mobo different from the ASUS Prime X299 Deluxe, I would rather prefer that you create and provide a board specific XHC USB Kext as soon as possible, and primer to any automatisation. Other users might urgently need it.
In any case, I think it does not harm to repeatedly study and read my guide and to apply each step manually. Learning by doing is always the most efficient approach especially for unexperienced users...
Looking forward to receive your further feedback
Cheers, man!
KGP