Reorganized the shell execute function so it is easier to follow and made prompt an option that can be specified in a command's defined options.