Generic shell that handles specified commands