One of the best things I've seen this year
I'm really quite glad that this ended so amicably and not with Troy being sued. It doesn't seem like it would be too unlikely in certain litigious areas of the world, and could potentially not end well given a judge without any technical knowledge and/or sense of humour.
I got around Office 365 removing .ps1 file attachments recently by changing the file extension to something alone the lines of ".not-a-virus nyet, definitely not a virus" followed by the first two lines of the Russian national anthem in Cyrillic. Worked fine.