@theopenem_admin Thanks i was abel to do it via custom invenentory , i thinks custom invenentory is not documented in docs webside

below is the script to help if someone is looking for something similar

$rebootrequired =([string](get-content "C:\Program Files\Toec\logs\service.log" | Select-String -Pattern "INFO" -NotMatch | select-string -pattern "ModuleWuManager - Reboot Required: True" | select -last 1)).SubString(0,10)
$lastreboot = [datetime]::ParseExact((((Get-WmiObject win32_operatingsystem).LastBootUpTime).Substring(0, ((Get-WmiObject win32_operatingsystem).LastBootUpTime).IndexOf('.'))),'yyyyMMddHHmmss', $null).ToString('yyyy-MM-dd')
if($rebootrequired -ge $lastreboot){
Write-Output "reboot required True"
}else{
Write-Output "reboot required False"
}