$cmd = array_shift($arguments);
    // shifts the first item cmd from the array
    //print_r($arguments);
    foreach ($arguments as $property) {
        $part = explode("=", $property);
        if (count($part) != 2) {
            throw new RuntimeException("Filter `{$property}` invalid. Expecting filters in key=value format");
        }
        $key = $part[0];
        $value = $part[1];
        $filters[$key] = $value;
        echo "Adding filter: {$key}={$value}\n";
    }
}
try {
    $resources = $hubClient->findResources($filters);
} catch (NotFoundException $e) {
    exit("\nNo results found...\n");
}
foreach ($resources as $resource) {
    echo "Resource [" . $resource->getType() . "]\n";
    foreach ($resource->getProperties() as $property) {
        echo "   " . $property->getName() . '=' . $property->getValue() . "\n";
    }
}
//print_r($resources);
//exit();
/*
foreach ($resources as $resource) {
    $data = $providerClient->getResourceData($resource);
    echo $data;