Expose progress bar API

It would be a nice feature to be able to control progress bar as described in this electron doc: Progress Bars | Electron (electronjs.org)