The problem would be buying the company with the roth, not the wages afterwards.
It is completely legal to own a company and pay yourself below market rate, or even not at all. In fact, it is how many small business work.
In your example, the company still has to pay corporate tax, even though it is owned by the IRA.
The only tax advantage to your consulting scheme would come at the time you sold it to someone else, or liquidated it.