Automate Report Messages SPAM to 7726

Does anyone have an idea of how to automate reporting SPAM in iOS Messages app to 7726?

The workflow is described here: