A switch? I think you need 5 or 6 four pole relays, which would connect the windings of each individual stepper motor to your 'A' axis outputs - preferably using bifurcated contacts for low resistance. Avoid switching relays while running.

Edit: Forget the bifurcated contacts. Those are for low current, low voltage signals.