How do you format computer from pendrive?

unless you put some special program on it that formats drives you can't