How exactly are you telling the program to run? Function Key, run icon, command line or something else?
If you are using a key that issues the COMMAND; as part of the instruction then command that will toggle the appearance of the command line per window.
Or if your program has a DM command in the body it could do the same thing.
If you modified you tool bar and are using the run icon, did you change the options for the run icon?