How to use getcomponent when there is more than one component with same name is assigned to the gameObject?

What would be the way to call a script using GetComponent when there’re many of these scripts (with the same name) is attached to a GameObject?
Is there any unique ID that I can call as the GetComponent’s parameter instead of the name of the script?

Thank you

I would use Component.GetComponents.<>() to get an array then you should be able to just associate an index with the script that you want.