Disable scripts from another object

I would like to know if there is a way in which I can disable a Script of an Object A from a Script of an Object B and not disabling the object in general.

If you have a reference to a script (any script anywhere, a reference acquired by any means you like), you can set the .enabled field to true or false.

Ohh, thank you