First disconnect the shorting or discharging switch which is between capacitor and lamp and then connect the source switch and capacitor switch by doing this the capacitor will charge and then switch off the main power supply switch but still the lamp will glow drawing its power from the capacitor