List relevant fixlets of a relevant baseline

Would anyone happen to have any relevance code that would return what baselines are relevant for any given machine along with the relevant components of that baseline? We have a naming convention for security patch baselines so I am able to return the relevant baselines, but am unable to return the relevant components for the baselines.

(names whose (it contains “Patches”) of relevant fixlets of computer of it) of results whose ( value of it as lowercase contains “xxxxxx” ) of bes properties whose ( name of it = “Computer Name” )

Thanks