Three-in-one waste-to-power technology