Hi Nived, when I ran the first command I got an error message saying that the Excel.dll and microsoft.office.interop.excel.dll files don't exists at this path. The first part of the error is in Portuguese, but it's saying this. After that, the others commands also raises erros messages
Add-Type : Não é possÃvel associar o parâmetro 'Path' ao destino. Exceção ao definir "Path": "Não é possÃvel localizar o
caminho 'C:\Program Files\Microsoft Office\Office16\Excel.dll' porque ele não existe."
No linha:1 caractere:16
+ Add-Type -Path "C:\Program Files\Microsoft Office\Office16\Excel.dll"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Add-Type], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand
Add-Type : Não é possÃvel associar o parâmetro 'Path' ao destino. Exceção ao definir "Path": "Não é possÃvel localizar o
caminho 'C:\Program Files\Microsoft Office\Office16\microsoft.office.interop.excel.dll' porque ele não existe."
No linha:1 caractere:16
+ ... -Type -Path "C:\Program Files\Microsoft Office\Office16\microsoft.off ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Add-Type], ParameterBindingException
+ FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand