ImportExcel
ImportExcel copied to clipboard
KillExcel fails
In some circumstances (did not dig) Stop-Process waits for confirmation.
Work around: use -Force -Confirm:false in Open-ExcelPackage function, line 17.
In this context the expression in the line 18 while (Get-Process -Name "excel" -ErrorAction Ignore) {} can cause an infinite loop. I would introduce a timeout.