One way to do this is to execute the sctipt from a terminal like xterm or tilix:
tilix -e "path-to-your-program"
but it will normally keep the terminal window open until the script finishs, even if you put an "&" at the end to put the job in the background.