How To Take Screenshots with Puppeteer?

The solution to hung node.js service problem while trying to run Puppeteer under IIS Server or as a windows service. a small Node.js application to generate screenshots for HTML Pages using puppeteer.