Unity GetComponent Script?

I was trying to make an rts like game where I can move multiple units at the same time & I got the movement & selection working but now I would like to put them together. So when you right click you have a raycast to get world position then inside that I have:

for (int i = 0; i < selectedUnits.Count; i++)
      selectedUnits*.GetComponent(s_Unit).MoveMethod(hit.point.x, hit.point.y, hit.point.z);*

The idea is to send the position to all selected units in the arraylist by getting the s_Unit script they all have & telling it to run their MoveMethod so that only the selected units will get the command & later I can offset the value per unit etc, but I can’t get the thing to work I have tried I bunch of things like .transform.Find(“s_Unit”). & (). .
Any help would be appreciated.

for (int i = 0; i < selectedUnits.Count; i++)
selectedUnits*.GetComponent<s_Unit>().MoveMethod(hit.point.x, hit.point.y, hit.point.z);*
To get a component you need to write it like this.
GetComponent<s_Unit>()
in c# then check if you are able to access MoveMethod