Ok for this you need:
1.AR
2.Move Modifier code
3.All pokemon can learn any TM code
4.All TM code
First using the move modifier you make TM focus punch (thats what it usally is) the move you want. Then if you have the all pokemon can learn any TM code on all pokemon should be able to learn it. Thats basicly it
You can also use this for metronome wars btw.