Try this:
:optB
cmd /k
Another option is to simply do it as:
:optB
cmd.exe
This will start the cmd
instance within the same window, after the execution of batch file is done, if option B is chosen.
You can also just do it as:
:optB
cmd
...without the extension.