I have a batch script that I use to launch a program, such as notepad.exe. When I double click on this batch file, notepad starts normally, but the black window
notepad.exe
Use start notepad.exe.
start notepad.exe
More info with start /?.
start /?