It looks like this works like an Android phone debloater, which have existed for a long time.
Making a script that uninstalls packages via Android Debug Bridge (adb) is trivial. The actual hard part of is knowing what can be uninstalled without breakage, which can only be figured out via trial and error.
At best, this rips off the hard work of people who did the trial and error, and at worst this just removes random stuff with literally zero testing.
I don't think fighting slop with slop will work, it just looks to me like you now have even more slop spreading even faster everywhere.