If i run the PowerShell script from a .bat file mannually it is working fine.
Same Script calling from .Bat file in c#, getting below error:
"Exception: Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."
Please help me.