This yes mostly. Not several hundred feet unless the target has a several Hundred foot move, but other than that yes.
This ruling opens up a rather nasty exploit: if you think there's a secret door in a wall with no other exits but you can't find it, cast
Command: Flee on someone expendable between you and the wall and thanks to the knowledge gained from the spell they'll find it for you.
If it is a plant with a 10 foot move then perfect information in a 10 foot radius around it. If it is a Dragon with an 80 foot move than an 80 foot radius. If the target is restrained or grappled or otherwise has a 0 move then no information.
The spell IMO just makes the target flee, period. One of two things happens next depending on whether one rules the fleeing is in panic or not:
1 - if not panic, the target's own knowledge and choice then kicks in as to where to go if-when moving directly away from the caster isn't (or is no longer) a viable option due to hazard or obstacle.
2 - if panic, the target flees in a straight line away from the caster ignoring any hazards; if an impassable obstacle (e.g. a wall) blocks flight or if a choice must be made (e.g. the target reaches a T junction), which way the target goes next is determined randomly.
In either case, the spell is not telling the target where to go other than directly (or as near as possible) away from the caster.
If it's ruled that the target's movement doesn't have to be directly away from the caster AND that the target has choice in where to go as long as it's no closer to the caster then the door opens for all kinds of rules-lawyering, shenanigans, and arguments.
Like I said magic is all powerful and inassailable.
Meh - this goes a bit far for me.