Hmm, yes, then writing it as a nodejs
application might be closer to what you are comfortable with:
cardano-serialization-lib
can be used to construct transactions: https://github.com/Emurgo/cardano-serialization-lib/blob/master/doc/getting-started/generating-transactions.md- If you want to be as independent as possible, you can use something like https://ogmios.dev/ and https://cardanosolutions.github.io/kupo/ to monitor and submit transactions on your own node.
- Or you use an API like https://docs.blockfrost.io/ for that, but then you are dependent on that.
All of that would be more elegant than calling out to the shell to cardano-cli
in my opinion.