Hi. Sorry for my late reply: I was developping the new versions of ImageGrab.
You should try the version 6.1.5 or above and read the Documentation of ImageGrab. There is now a script language that allows you to process all files in a folder at once.
Besides, I have changed the switches to use in command line. They no longer start with swi_. Thus you may open a file with +o=”filename”