Perform search operation(dynamic keywords) in folder path and check if the keyword exists


I tried finding similar topics related to my post but didn’t find any, hence this post.
In my workflow I am extracting a string(folder name, which is dynamic and keeps changing after every iteration) , later i need to perform a search activity in a folder path(in my local machine) where i need to to search for the same extracted folder name, If that folder exists I am moving a file which is coming from a different workflow.
I tried using hotkeys but not sure how to pass the extracted folder name as input for searching the same.
I need assistance in performing the search operation and passing the value to search as variable .
Any suggestions will be very helpful.