unity – How do I modify the coordinates of an object from a script?

You should be able to find something like this in every single Unity tutorial ever written, so please be sure to search for existing documentation and guides before asking here.

void MoveObjectTo(GameObject mover, Vector3 position) {
    mover.transform.position = position;