SpellsCharm
Piertotum Locomotor
McGonagall's order to the castle's enchanted statues and suits of armour: they step off their plinths and march to defend the school at the start of the final battle.

In the books
Harry Potter and the Deathly HallowsChapter: 30
McGonagall animates Hogwarts’s statues and suits of armour to defend the castle.