Using script from a Prefab by the press of a UI button

I’m pretty new to Unity, and there’s a lot of things I don’t know how to do.

I have an UI that have a few buttons, one of them allows the player to add a prefab into the map, by selecting this prefab, you have a few option, for example, move it, delete it, or to use it’s function if it has any, however, I’m having trouble with this. I’m not able to access the prefab’s script so that I can call the function it has to do.

I tried simply using the script, but nothing appears to have worked.