This spell creates an Undead servant. Choose a corpse of a Medium or Small Humanoid within range. The target can't be of a CR higher than the spell's casting level. Your spell imbues the target with a foul mimicry of life, raising it as an Undead creature. The target retains its likeness and stat block that it had in life (the GM has the creature's game statistics), with the exception of it becoming Undead and its alignment becomes unaligned for the duration.
The Undead is an ally to you and your companions for the duration. The spell ends if the creature drops to 0 Hit points.
On each of your turns, you can use a Bonus action to mentally command a creature you made with this spell if the creature is within 60 feet of you. You decide what Action the creature will take and where it will move during its next turn, or you can issue a general command, such as to guard a particular chamber or corridor. If you issue no commands, the creature only defends itself against hostile creatures. Once given an order, the creature continues to follow it until its task is complete.
Upcasting. When you cast this spell at 2nh level or higher, you animate a creature that has a CR equal to or less than the spell's level.