I found this website on GitHub. Windows10Debloater
I particular there’s one script in particular on the main page.
At the time of this posting it is called Windows10Debloater.ps1
Used it on some of my machines. While it wasn’t able to remove everything I will say 90% of the bloat is removed and you just have to uninstall a couple other apps.
I do suggest checking the page out before running the code as I have noticed things change and as of this writing this script was updated 9 days before.