addition of function asking user if they would like to execute a command