Learn about Windows PowerShell
Summary: Learn how to make multiple WMI queries to a remote machine more efficient.
How can I make running multiple WMI queries against a remote machine more efficient?
Create a CIM session with New-CimSession, and use that in your calls instead of a computer name:
$sess = New-CimSession –Computername server02
Get-CimInstance –ClassName Win32_OperatingSystem –CimSession $sess