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.
[1] - https://github.com/Raphire/Win11Debloat