Another script to consider that has been around a while and has a number of contributors [1]. that does remove telemetry and optionally many other things. Always back up your registry and systems before using such scripts.
I’d like to think there is a Microsoft developer out there that used this script on the very machine that is helping create one of the listed applications that was removed.