How to access ocjects that is in other scene

GameObject.Find("Wizard").transform.position = GameObject.Find("SpawnPos").transform.position;

I tried this but it comes up with null reference error pls help!