corporations need to stop circumvent the laws and start paying taxes instead of being "smart" with legions of lawyers and accountants looking for "tax optimisation"...
That's ridiculous. Why does Congress pass tax code with incentives to do certain things? Because they want to incentivize those behaviors. It could be onshoring employment, R&D, education, etc. After the 2009 collapse, they wanted to incent capital purchases, so they amended the code to allow full asset depreciation in the year of purchase (e.g., normally, if I buy a computer, I can treat 1/3 the cost as an expense in each of the 3 years from purchase, but if I could instead deduct it all in year 1, that would effectively make it cheaper because $1 this year is worth more than $1 next year, which has the net effect of incentivizing buying more computers). They provide tax breaks to encourage the largest corporations in a position to move the economy to engage in those activities. That is neither good nor bad, it's just the law and the incentives change with the economic times and legislative preferences.
If you don't like the law, that's absolutely fair. If you want fewer regs so that the big corps don't have the advantage they gain from lawyers and accountants, vote for a simpler tax code. But your beef is not with MS, it's with the government for a murky and ambiguous code.
It's not like MS has committed tax fraud. If that were the case, I would 100% agree with you -- stick it to them. This is just a dispute over the code itself and whether certain fund transfers were allocated to right or wrong account. If you wouldn't want the IRS auditing you when you followed the advice of your accountant, then you should not want it going after MS (or anyone else) for following theirs, whether it's a local accountant or a team of tax lawyers.