The windows key + R opens the run command in windows, which leads to an easy way of quickly opening a dos prompt and running a command.
In the “open box”, type:
cmd /k your command
to run the command and keep the window open, or:
cmd /c your command
to run the command and close the window.
eg cmd /k ping google.com