How does dos shell works?

Can you answer this question?