Solar panels can generate power from the moon. Remember that the moon reflects sunlight so that indirect light can create some power through your solar panels. The reflected light is weak, so you will get a minimal amount of energy, usually about 300 times less than you would get during the day, and only if the moon is full.
When the moon is half-full, you will get even less energy. So, if you get 10 W of power from a full moon, you would only get about 5W from a quarter moon. You can maximize the output by creating a device that would reflect or refract the moonlight.
Photovoltaic cells will create energy if the light’s wavelength is violet to near-infrared. But, on a moonlit night, the best solar panels cannot generate enough energy to power one LED bulb.
Unfortunately, the inverter won’t work if the moonlight is low, even if the solar panels produce small amounts of energy. Engineers are working on creating panels with photovoltaic cells that can capture more light from the moon to function throughout the night and reduce the need for net metering and battery storage.