gwmi -cn $computer -namespace “root\CIMV2\Applications\MicrosoftIE”-2008

It has been removed from Post Winsows 2003 & not working 2008 onwards.
(gwmi -cn $computer -namespace “root\CIMV2\Applications\MicrosoftIE” -query “select version from MicrosoftIE_Summary”).Version

Any alternate for 2008?

As far as I’m aware, there’s not an alternate WMI Namespace or Class to obtain that information from. You could retrieve the information from the registry:

Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Internet Explorer' -Name svcVersion

You can use that command with PowerShell remoting to retrieve the information from a remote machine:

Invoke-Command -ComputerName 'RemoteHost' -ScriptBlock {(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Internet Explorer').svcVersion}

If your set on using WMI (if PowerShell remoting is not enabled), you could do something like this and check the actual file version:

Get-WmiObject -ComputerName 'RemoteHost' -Class CIM_DataFile -Filter "Path='\program files\internet explorer\' and Filename='iexplore' and Extension='exe'"