Add members of trust_level_3 to another group and remove them once they lose the trust_level_3

I did that but it’s only working forward as in for new users obtaining the Regular badge but not in reverse, for those who are already TL3. Is there a script command to set it for users that already obtained the badge?

Thanks a lot for your support guys, really appreciate it.