Select object in another scene

I’m using a script to activate/deactivate script attached on a specific object:

var OBJWithScript : GameObject;
var ScriptName : String;

//etc...

    function DisableScript () {
        OBJWithScript.GetComponent(ScriptName).active = false;
    }
    
    function EnableScript () {
        OBJWithScript.GetComponent(ScriptName).active = true;
    }

How can i select object that’s is in another scene?

You can’t. A scene is not accessible from another one. Actually only the objects of the current scene exist.

You could load the other scene additively, resulting in a merged scene. It depends on what you are trying to achieve.