how to do "If driver version is lower than x number" run c:\abc.exe

Hi Guys

Can someone please help me for the below issue:

I need to install a network driver is the version is lower than the latest.

I was doing this via reg location, but it seems the key is in different places on same models, I assume it’s how windows decides/ feels lol

So I know how to get the driver version:

Get-WmiObject Win32_PnPSignedDriver| select DeviceName, DriverVersion, Manufacturer | where {$_.DeviceName -like “Realtek RTL8822BE 802.11ac PCIe Adapter”}

Can someone please help with what I need to do for if it is lower than eg 10.2.10 then run c:\abc.exe /s

Thanks in advance