$Session = New-Object -ComObject "Microsoft.Update.Session"
$Searcher = $Session.CreateUpdateSearcher()
$historyCount = $Searcher.GetTotalHistoryCount()
$a=$Searcher.QueryHistory(0, $historyCount) | Select-Object Title
$a
Request you to kindly help me to filter only KBxxxx,softwarenamelist
for the above command output.