If you have a .zip version of an RUU (often used for newer devices like the HTC 10 or One M8), you can flash it directly from the phone's bootloader. HTC One M8 Flashing a RUU of TWRP Recovery in Hboot