Then just turn off everything you don't need in privacy settings
For the rest, use GPO to modify telemetry and other settings you need.
Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds : and set it to level 0
Don't use weird scripts to make system modifications.