Welcome to fraudolent win world! Because you solved it yet only think i can add is a bounch of links (for future monks falling in that pit):
another official doc
the wiki page
The worst is that ms apps die with an incredible error like 'there was a problem with..' and fortunately Perl had died with the more useful 'File not found..' error that put me on the rigth path to solve the issue.
More incredibly there is a workaround! you can use the 'special path' 'sysnative'
which is an alias that redirect you where you intend to go. No entries in event log make you aware of the fraud, nor error mentions this.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.