https://blog.it-kb.ru/2022/05/30/automate-excel-with-powershell-without-having-excel-installed/
Автоматизация Excel с помощью PowerShell без установки Microsoft Office Excel