/targetfriend does work, but it’s really bad. Essentially tab-targeting through allies but only if they are in front of you.
Anyone doing arenas will target specific partymember #s because this command is totally useless.
A macro that screams obscenities and death threats is breaking the rules. An addon that causes anyone running it to mail 50k gold to the author every time they open a mailbox is breaking the rules. That’s not saying that addons or macros are the root problem, doing something very, very obviously outside the bounds is.
The only bannable thing that I think is questionable is mouse software key sequences / AHK. If the game detects these, it should give a clear warning that they’re not allowed. A tech-illiterate person may not even know those are running.