Page range:use “pageString”, which is a text string. It comes with this description:
The page(s) to export, specified as a page number or an array of page numbers. Note: Valid when PNG export range is not all.
so don't forget to set pngExportRange as well.
The description may seem confusing at first — it's defined to use a 'string' but the description calls it a 'page number'. This is because in InDesign, a page number is a text string, since a page can be 'numbered' “xviii”, or “Section 2:B”, or “001”.
See https://jongware.mit.edu/idcs6j…..rence.html for all available preferences and the value types they accept. (Quite surprisingly, “pngQuality” is among them as well. I was pretty sure 'quality' was a JPEG-only thing. I wonder if it actually makes any difference whether you use LOW or MAXIMUM quality.)