what type of sentence is used to give a command
An imperative sentence is used to give a command, such as “Open the window”. Other types of sentence are declaratives, which are statements, exclamatives, which exclaim feelings, and interrogatives, which pose questions.