Found you in this thread, so I’m probably late to the party:
For completeness and if someone stumbles onto this in the future, you should be able to use the script method above or a single line to sendText over a secure secondary channel:
meshtastic --sendtext test --ch-index 1
Per discussion in that thread, there may be an issue with the September commit hobbling this functionality at the moment.