Create array of scripts

This example best illustrates what I would like to do (while also drawing attention to my ignorance!) :stuck_out_tongue:

var allWindows = new WindowHealth[7];

function Start ()
{
	allWindows = GameObject.FindGameObjectsWithTag("Window").GetComponent(WindowHealth);
}

Okay, I’m unsure if there’s a better approach but this seems to be working alright:

var allWindows = new GameObject[7];
var allWindowsHealth = new WindowHealth[7];

function Start ()
{
	allWindows = GameObject.FindGameObjectsWithTag("Window");
	for ( var i = 0; i < 7; i++)
	{
		allWindowsHealth _= allWindows*.GetComponent(WindowHealth);*_

* }*
}