Elias:
It opens GraXpert via CMD and it then automatically launches a gradientremoval based on AI (only this is possible in the CMD-Mode).
After that the Script loads the processed image back in PixInsight.
If it does not support the CMD-Mode (aka you've got an old GraXpert version), it just open GraXpert normally.
Thanks for the details, @Elias ! I do have a question though: I'm curently using the the latest beta version available on their website ('Ariel'), and when I run the script through ToolBox --> GraXpert, I still have it open on its own window and I need to manually adjust it, save my image and then quit the software so that the image is 'updated' on PI.
I'm very happy with the results from the AI, so it would amazing if I could just run it through CMD automatically as you mentioned - it seems I can't do it, even though I downloaded the latest version. Any ideas on how to troubleshoot it?