move CommandManager out of inner class
add command manager in project
add test fro addscript command
fix import
tested more comprehensive command action