The description of the compulsion spell states:
[...] Until the spell ends, you can use a bonus action on each of your turns to designate a direction that is horizontal to you.
Each affected target must use as much of its movement as possible to move in that direction on its next turn. It can take its action before it moves. After moving in this way, it can make another Wisdom saving throw to try to end the effect.
A target isn't compelled to move into an obviously deadly hazard, such as a fire or pit, but it will provoke opportunity attacks to move in the designated direction.
Reading the spell again it says they can use their action before moving but what if they don't? Do they then have to dash to use "as much of [their] movement as possible"?
What about rogues? If they are affected by it, do they have to use their bonus action from the Cunning Action feature to Dash? The spell only permits their action, not their bonus action.