In Gladys, everything is API so you can already build yourself a small CLI for this kind of operation.
The API documentation is available here :
Ask an AI to code you a small CLI from that documentation, in my opinion in a single prompt it will give you something that works perfectly, I had already done that last year: