Runs the command cmd with options as its CLI parameters and returns the
    result as a dictionary.

def _run_command(cmd, options=(), env=None):
    '''
    Runs the command cmd with options as its CLI parameters and returns the
    result as a dictionary.
    '''
    params = [cmd]
    params.extend(options)
    return __salt__['cmd.run_all'](params, env=env, python_shell=False)