Invoking function from other script

I was asked to make this feature:
Typing function’s name in the inspector, so once the selected even happens it will be called on every object that has that script. In order to call the function by string i need to Invoke() it, but i can’t wrap my head around doing that.Is there a way of doing so?

hello, define all scripts into a script or get all from type as monobehaviour, and call same function from each one like this:

Define this to your inspector interactable component like button or something has event trigger

public void callSameFunc(string calledFunc)

{

script1.Invoke(calledFunc);

script2.Invoke(calledFunc);

script3.Invoke(calledFunc);

}