Thank you very much.
The result was immediate, except that I had already set the path to gmic according to the recommendation given in:
Why I was so persistent with this idea.
Since I already wrote a tutorial => Batch editing in gimp_gmic_qt
and I found that it was too long and complicated a process, while there is simplicity and speed in this method.
I emphasize that I am not a programmer, but an amateur with 20 years of experience in G`MIC.
I have already written several guides in this regard.
Further it is my hobby to do something for others and not get rusty (I am 91 years old).
Thank you again