how i can extract output form cmd using java script : how i can extract an output from cmd and add it as var in javascript 
i wanna extract this value as an example "11675724" in the screenshot below

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    ar extract = function(string) {
        var o = {};

        string.replace(/(.*?)=(.*?)(?:\|\||$)/g, function(all, key, value) {
            o[key] = value;
        });

        return o;
    };

<!-- end snippet -->

[enter image description here][1]


  [1]: https://i.stack.imgur.com/CwWCj.png