Self-promotional posts often are flagged as spam by the community. A moderator accepted the spam flag. Thus the post became eligible to be a review audit.
I probably would not have accepted the spam flag. The user clearly made the necessary disclosures, and the script was a potential solution to the problem given in the question.
The help center states:
The community tends to vote down overt self-promotion and flag it as spam. Post good, relevant answers, and if some (but not all) happen to be about your product or website, that’s okay. However, you must disclose your affiliation in your answers.
If a large percentage of your posts include a mention of your product or website, you're probably here for the wrong reasons. Our advertising rates are quite reasonable; contact our ad sales team for details. We also offer free community promotion ads for open source projects and non-profit organizations.