@Viniciusmbs, I'm glad you asked because I've been working on the official Home Assistant integration for TRIGGERcmd. It's almost ready. I'm just waiting for this pull request to get merged: https://github.com/home-assistant/core/pull/121268
In the meantime, you could use this method.