What exactly are you trying to do? You might not even need to use the command prompt. For example, you can get your ip address or ping someone using the API. If you are running a batch file, you can put "pause" as the last line.