As two actions, you banish a creature that you can touch or see within 10 meters into a labyrinthine demiplane. The creature must succeed on a Will saving throw or it remains there for the duration or until it escapes the maze.
Once on its turn, the creature can use an action to attempt to escape. When it does so, it makes a Difficulty 20 Intelligence check. If it succeeds, it escapes, and the spell ends (a minotaur or goristro demon automatically succeeds).
When the spell ends, the target reappears in the space it left or, if that space is occupied, in the nearest unoccupied space.