First, you place the command block one block down and place a button (or really whatever you want).
Second, press the button.
Third, you place a slab under the floating armorstand.
One last thing,
The armor is only enchanted to look good so it's not very good armor if you want armor.