interrogative sentences
Yes, it is.
A sentence that gives a command is an imperative sentence:Maxie, go pick up your room.Stop! Go to your room. Take out the trash. all imperative
I assume you mean gives a command as in "Sit down, please!" It is called an imperative sentence.
It would be unwise to decline a command performance. Ground Control, this is Mission Command -Do you copy? By your command, my liege!
Mercedes-Benz's MyCommand Head System
Command
Tales from the Console Graveyard: Atari 2600
Incarceration Advice