Have a script that uses If() and send a ScriptParameter to this Script with name of Script. Then
If( get(ScriptParameter )= "Your report name 1"
Perform Script (Report 1)
Else if ( get(ScriptParameter) = "Your report name 2"
Perform Script (Report 2)
I had thought of that approach, but that means, that you have to hardcode the reports in the script.
The way I'm trying do it, is having a field within the record to store the script's name, but I cannot use a variable in the Perform Script structure, you have to select it, in order to make it work.
Do you have any suggestions?