In buildings running wire in a plentum is illegal. That is what that roof vent represents.
On a metal roof I go thru the roof. On a rubber roof I prefer running the wires over the side, and thru the side.
If thru the side I use a thru deck to keep the water out. By itself water can seep in so a drip loop is in order.
On a metal roof I drill thru the roof and use a shaft to form a dam with the edges so water can't make it into the hole. I then take the bottom of a beverage can poking a hole for each wire in its side thread the wires thru the can with enough wire to reach the air switch. Fill the can with silicone sealer to over the brim. Then place over the hole and weight it down until the silicone sets solid. Don't forget the water loop on the wires so the water won't follow them down.
As with Kevin, I don't install flexible panels. They,like all solar panels get hot. Most adhesive softens when it gets hot SO. Failure is only a hot day away.
Hot panels lose output power,so no ventilation under the panel is throwing away power.
That extra heat heats your living space. It could be argued tha the output won't equal the power needed to overcome the added heat a surface designed to absorb sun energy produces. Solar panels are low efficiency, roughly 20% is turned to electricity, the rest is absorbed as heat energy, with nowhere to go but under that fixed panel.
My cargo trailer has only 2" spacing under the panels, I have considered installing fans to increase air flow. My fifth wheel the gap is 6" and on a hot day I can feel the difference between the two.