raise an error when a command is not defined

When the os can't be found, we tend to get '--arg' is not a valid command.

This raises an exception to say that the command is not found.

issue: not sure the best way to communicate this with the calling app.