Workflow - Search Activity

Hello team. I need your expertise here with ARS workflow activities. I would like to pass objects found in the search activity of  the workflow to a custom script. I tried both $Request and $DirObj but no luck. I am not sure whether it is possible or not.

I am trying to perform additional checks and then send email notification to the user found in the search activity. I tried If-Else block but the notification object does not have ability to insert custom token which includes attribute information of the found object. Appreciate your help.. Thanks.