Script Editor

 
 
 

In main menu bar: Window > General Editors > Script Editor

In scene view: Panels > Panel > Script Editor