Implement simple cmd command which takes a string and executes it

Uses Haskell syntax with semantics changed