WMI query for a method

I’m attempting to convert this WMI query from Powershell into Bigix relevance. Any assistance would be greatly appreciated. In essence, I need to capture when this particular object in WMI reflects a pending reboot as it doesn’t always align with the results from the “Restart Needed” fixlet in Bigfix.

IF(Invoke-WmiMethod -Namespace “ROOT\ccm\ClientSDK” -Class CCM_ClientUtilities -Name DetermineIfRebootPending | select-object -ExpandProperty “RebootPending”)
{$Output = ‘True’}
ELSE
{$Output = ‘False’}
$Output

Relevance is “read-only” - it can retrieve a WMI Property, but as far as I know cannot invoke a WMI Method.

You’d need to run an Action instead, very possibly executing that exact same PowerShell script, save the output to a file, and read back the file content in an Analysis / Retrieved Property.

Agreed, thanks Jason.