Script for kMD metadata attributes - Mail Attachment

I need some conditions that don’t exist on the “Other…” menu.
I need to pass them one at a time
kMDItemDestinationRecipients
kMDItemOriginSenderHandle
kMDItemOriginSubject
I don’t have programming skills so I searched the forum for a solution using a script.
Here are some I tried but didn't work
https://www.noodlesoft.com/forums/viewtopic.php?f=4&t=2021&p=8434&hilit=THE+VALUE+THAT+YOU+ARE+INTERESTED+IN+MATCHING#p8434
https://www.noodlesoft.com/forums/viewtopic.php?f=4&t=688&p=21236&hilit=mdls#p21236
Here is the mdls output of the file I need to pass the conditions
I need to pass them one at a time
kMDItemDestinationRecipients
kMDItemOriginSenderHandle
kMDItemOriginSubject
I don’t have programming skills so I searched the forum for a solution using a script.
Here are some I tried but didn't work
https://www.noodlesoft.com/forums/viewtopic.php?f=4&t=2021&p=8434&hilit=THE+VALUE+THAT+YOU+ARE+INTERESTED+IN+MATCHING#p8434
https://www.noodlesoft.com/forums/viewtopic.php?f=4&t=688&p=21236&hilit=mdls#p21236
Here is the mdls output of the file I need to pass the conditions
joaoaraujo@MBP-M1-Joao-Araujo ~ % mdls /Users/joaoaraujo/Local\ Documents/Hazel\ Local\ Action/Hazel\ com\ senha/Fatura\ Claro.pdf
_kMDItemDisplayNameWithExtensions = "Fatura Claro.pdf"
com_apple_metadata_modtime = 734447919.65694
kMDItemContentCreationDate = 2024-04-10 13:18:39 +0000
kMDItemContentCreationDate_Ranking = 2024-04-10 00:00:00 +0000
kMDItemContentModificationDate = 2024-04-10 13:18:39 +0000
kMDItemContentType = "com.adobe.pdf"
kMDItemContentTypeTree = (
"com.adobe.pdf",
"public.data",
"public.item",
"public.composite-content",
"public.content"
)
kMDItemDateAdded = 2024-04-10 20:16:06 +0000
kMDItemDestinationRecipients = (
“XXXXXX@icloud.com"
)
kMDItemDisplayName = "Fatura Claro.pdf"
kMDItemDocumentIdentifier = 0
kMDItemFSContentChangeDate = 2024-04-10 13:18:39 +0000
kMDItemFSCreationDate = 2024-04-10 13:18:39 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "Fatura Claro.pdf"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 385947
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2024-04-10 00:00:00 +0000
kMDItemKind = "PDF document"
kMDItemLogicalSize = 385947
kMDItemOriginApplicationIdentifier = "com.apple.mail"
kMDItemOriginMessageID = "27488"
kMDItemOriginSenderDisplayName = "Fatura Claro"
kMDItemOriginSenderHandle = "Fatura Claro <faturadigital@minhaclaro.com.br>"
kMDItemOriginSubject = "Sua fatura Claro Net por e-mail - 04/2024"
kMDItemPhysicalSize = 389120
SYDocumentRelatedUniqueIdentifierKey = "27488"
joaoaraujo@MBP-M1-Joao-Araujo ~ %