Five different ways to find the target and execute the command:
Getting the Component on the GameObject:
The GetComponent function is the in-built Unity function used to get a specific component from a target GameObject.
If the target component is on the same GameObject, you can just write it as above.
If the target component is on another different GameObject, you need to specify which GameObject as a prefix to the function, like either of these: