Funny coincidence, I recently debloated my W10 with a script as well. I saw the one in the OP during my search, but ultimately didn't go with it as it didn't look legit to me compared to another one that I found mentioned in a article guide.
Used this one:
https://github.com/Sycnex/Windows10Debloater
This one does not affect anything to do with Windows Update and any important system stuff from my experience.