Add invoke_cmd method

Add invoke_cmd method to run a command on a remote host and return the
output as well as other information