Shorten up the `dir` command
Pass shell and command to internal cmd by refrence
pass the command to the internal cmds as a const