Creating Button/Context Menu to resize pics with Gigapixel AI

I want to be able to use the Command Line Interface options of Gigapixel AI to pass images via DOpus but I'm not sure how to do it. I've tried to look at some of the scripting help but I get a bit befuddled (could be age and/or ADHD).

Can somebody help me figure out how to integrate the commands at the site below into DO scripts that I can attach to buttons and/or context menu commands. A sample would work or I could be directed to an easy tutorial.

Thanks for any help. Truly appreciated.

Brad

Are you sure you have the Pro version? It's $500/per seat/per year

I can't test it since I don't have Pro but this might get you close to something working. The button set to MS-DOS Batch Function

Upscale selected files by 2x using auto settings, preserving all aspects of image format

gigapixel --input {filepath$} --output {filepath$} --prefix -gigapixel --scale 2

Ahh, there you have it. I don't have Pro. Though it seems that commands are being passed as I get error messages and such. I'll play around a bit more just to see.

Thanks for the help.