I'm new here, so I registered just to ask this specific question:
I'm desperately trying to figure out how to programmatically...
Sorry but there is an issue with the forum where it can't send out emails.Because of this the forum is in read-only mode at the moment.
You can find the currently known issues with Tasker and possible workarounds here.
Separate names with a comma.