Enhanced to show a toast at the end of a command.