hi,
Interesting solution. I don’t know your overall goal of the solution, however if I may make a suggestion:
If you “convert” your excel files to csv, you could import them in powershell and handle all the logic there and then export the results in powershell to csv and open that in excel? Downside is you only get one sheet for each file if you save it as csv, however you can still use formulas in excel if you need them.
Cheers