Off-label prescription is prescribing a drug for non-intended purpose.
Viagra for example, was originally studied for high blood pressure.
I've also seen a tv program where they visited a pharmacy company's lab that's literally machines mixing random drugs in order to find their next product. The place was the size of a walmart.