Hello @EnterpriseArchitect
Thank you for reaching out. I understand the ask here it to identify and disable guest users. You can review following script that I created on StackOverflow which detects Guest users who have not accepted the invite and disables them:
How to Automatically Remove Pending Guest Users in Azure Active Directory after 30 Days: https://stackoverflow.com/collectives/azure/articles/75918495/how-to-automatically-remove-pending-guest-users-in-azure-active-directory-after
Please let me know if this helps. If this helps to resolve your query. Please "Accept the answer" if the information helped you. This will help us and others in the community as well.