Ajj ok sorry mate didn't mean to say that the script is bad Ok am giving it a try, and will post result
Just throwing this out there if it hasn't been said before. If you remove the HTML Edge stuff, while it may seem fine and stuff does work, various things will act wrong. For instance, some settings about pages and whatnot will inform you that the removed Edge component is missing and in programs like Discord, URLs will always ask you which browser you want to open, even if you select the always open with option. This issue has occurred on both 1909 and 21H1 ISOs and I've finally isolated it.
I will post complete precedure tmrw for this powershell7 offline install using msmg powershell7 package.
@gdeliana Just tested latest fork, working good, took an extra minute to complete compared to the previous which was 10mins.
I've updated my post #992 - "Resources to help design APPX remove/keep lists aka Blacklist/Whitelist" with some more details after finding a very nice System Apps Inventory script
Have you tried manually pasting it into the terminal after all the code completes? I know that's not ideal, but it's the only way I've successfully tried it so far. The quote about adding it to a script was from someone on the original source page. I've not had much success writing (or editing) scripts lately, for the time being I'll just bring these potential "treasures" here and hope better minds can make them work