For the new 1.12.2 update to add the armor stand to the team do /scoreboard teams join (Team name) @e[name=armor stand name] and if it has spaces /scoreboard teams join (Team name) @e[type=Armor_Stand,c=1]. Instead of /scoreboard teams join (Team name) @e[type=ArmorStand,c=1]