Newbie here, not sure how to ask this.
What is the trick to execute a shell command, upon finishing, it will return to the original screen?
Try passing the somewhat confusingly named --keep-tite option to dialog (as the first option).
--keep-tite
dialog