Run macro with parameters

I want to run a macro with the parameters (parDirectory, parRegex) Any solution?