VLookup Multiple Records to One Record MultiSelect

Hi All.
Need some help adjusting my script to copy multiple record returns from one table to one record multi select in another table.
I have Thinkific lesson completions coming in creating a new record each time.
Wanting to then move them to another table with multi select field using email as the lookup.
It works in other databases with text and numbers, but I’m a little stuck in this instance.

Here is the script…

This is the table of Thinkific lesson completed records

this is the desired result that I havent been able to achieve yet…

Thanks for the help