I am trying to run below object but I am getting an error.
$fr = New-Object -ComObject firefox.Application
I am getting below error.
retrieving the com class factory for component with clsid
But I successed with below command
$fr = New-Object -ComObject InternetExplorer.Application
Firefox doesn't expose a COM object like Internet Explorer does. You can't automate Firefox (Chrome, Opera, any browser other than IE) that way.