Here is my issue,
When I use this code:
$DNs = %param-GroupsInRole%
$Groups = $DNs -split "|"
%Param-GroupsInRole% can have multiple groups. When setting up the parameter I am asked to pick a separator. So far I have picked ; and | (pipe) but I keep getting an errror like this:

I just need to be able to do a foreach with the groups picked by the initiator.