this works well for me, but the targeting system rationale escapes me and it sometimes marks enemies 2, 3, and 4 as mobs farther away than the most nearby ones. It does, however, select the nearest mob as #1 though.

/targetenemy
/mk attack1
/wait 1
/ac "Target forward"
/mk attack2
/wait 1
/ac "Target forward"
/mk attack3