Adding subscriber to alert custom field when sending notification

Hi,
Is there a way to add the subscriber name to a alert custom field, when sending a notification for this alert? Maybe with powershell?

Thanks,
Luc

I believe this SCOMathon session from 2021 is loosely what you are looking for: Enriching SCOM alerts with PowerShell - SCOMathon

This thread has a little age on it but this might help someone else so here it is:
PowerShell is a good option.
You will need the Subscription ID which is typically passed into a PowerShell Command Channel as an argument like this: -SubscriptionID ‘$MPElement$’
Or get the ID manually with PowerShell like this:
$SubscriptionID = (Get-SCOMNotificationSubscription -DisplayName MySubscription ).Id.Guid

Then get the subscribers with this:
(Get-SCOMNotificationSubscription -ID $SubscriptionID ).ToRecipients | Select-Object Name

However, you have to determine if the both the subscription AND subscribers have any specific schedule assigned, then determine at execution time if any schedules are active/applicable which is pretty painful to do. Good thing it’s already been done in the SCOM Enhanced Email Notification script at MonitoringGuys: SCOM Enhanced Email Notification Script Version 2.1 - The Monitoring Guys