The description of the Command spell says:
You speak a one-word command to a creature you can see within range. The target must succeed on a Wisdom saving throw or follow the command on its next turn [...] If the target can't follow your command, the spell ends.
The rules on surprise state:
If you're surprised, you can't move or take an action on your first turn of the combat, and you can't take a reaction until that turn ends. A member of a group can be surprised even if the other members aren't.
Does a surprised creature obey the Command spell? If a surprised creature is targeted by the Command spell, what happens?
I'm unsure which effect is more specific, and therefore takes priority. I'm leaning towards Command, simply because Surprise functionally takes away a character's turn from themselves, but doesn't incapacitate them the way a Sleep spell would.