add getCommandOuput method
add getCommandOutput method