WMI instead of WMIC command to find application version

wmi

I'm using wmic to find the current version of an in-house application. My command looks like this:

wmic product where "name='Application Name'" get version

I've never used wmi, but I've read about people saying it's easier to use than wmic. I think my use is a pretty simple one, but how would I use wmi for this, and would it be faster than wmic? (wmic runs very slowly for me)

Best Answer

PowerShell

Get-WMIObject -Query "SELECT Version FROM Win32_Product WHERE Name='SomeName'"