Creating a block of prefabs with for loop script

How can i auto create a punch of prefabs to make a wall that has it’s width length and height

You mean, how can you extend the example that the Instantiate API has?

   for( int y = 0; y < height; y++ )
       for( int x = 0; x < width; x++ )
          Instantiate( prefab, new Vector3( x * prefabWidth, y * prefabHeight, 0 ), Quaternion.identity );