Let me add a little bit of insight to this:
The lastest version of GraXpert now supports a CMD-Mode.
That's exactly what the Script from Jürgens Utilities (
https://www.ideviceapps.de/PixInsight/Utilities/) use.
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.
If you want the convinient mode, with you setting the sample-points, you still need to open GraXpert outside of PixInsight.