how to run single 7W bulb using pc UPS?
You are probably not draining enough power from the UPS. If it thinks there is no load it will shut-down to save the battery.

As such, you need to read the UPS manual to see if there is a mode that disables that feature, or find out the minimum power you need to draw to keep it alive and add that much load.