Fix double printing of models in ConsoleShell.

Fixes #3952
Fix errors in ConsoleShell.

The switch statement was failing to evaluate conditions properly and
always attempted to run the bind command.