Added helper method to run a command and return the stdout output
Added some new helper methods and started using helper method to run a command