Extensions/ExternalTfs/Src/Tasks/DownloadArtifactsTfsVersionControl/downloadTfsVersionControl.js
function utilExec(cmdLine) {
    var defer = Q.defer();
    shell.exec(cmdLine, function (code, output) {
        defer.resolve({ code: code, output: output });
    });
    return defer.promise;
}
function utilExec(cmdLine) {
    var defer = Q.defer();
    shell.exec(cmdLine, function (code, output) {
        defer.resolve({ code: code, output: output });
    });
    return defer.promise;
}
ret is { output: string, code: number }