Move runCmd and runAllCmds out of createCommand
Add new plugins on prepare