|What command are you trying to run. Can you provide the contents of your bat? |
If there is nothing left to run in your code, the file will exit. This is expected.
If you'd like the window to stay open, you can simply add "pause" to the last line of your code.