As per this spell some of the creatures depends upon your choice that you could see within a specific range and also which can hear you should make a Wisdom saving throw. Of course a target is automatically succeeds on this specific saving throw if it can not be charmed.
On a particular failed save, a target has been affected by this spell. Until unless the spell ends, you can easily use the bonus action on each of you every turn to the designate a direction which is horizontal to you. Each of the affected target should use as much of its movement as possible for moving in that particular direction upon its next turn. It also have a chance to take its own action before it moves. After moving in this particular way, it can easily make an another wisdom saving to try to end an effect.
You may also like to read about evard’s black tentacles spell 5e
Most probably the target is not compelled to move into an obviously deadly hazard, like the fire or pit, but it shall provoke an opportunity attacks to move in a designated direction.
Attributes Of Compulsion 5E Spell
|Casting Time||1 action|
|Duration||Up to 1 minute|