How to fit multiple spectrum with a loop?

Hi,

I have a 64 spectrum of the same type. I want to fit them with a loop using a gaussian peak. Any ideas?

Thanks,
Burçin