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
%ComSpec% /c %systemroot%\notepad.exe