Check CPU temp, fan speed, etc. with a batch file?

I want to check some things like my CPU temperature, fan speed, and other things like that. However, I can't install programs like CPU-Z, or SpeedFan(Don't ask why, I just can't). I've heard of some people doing it through a batch file. Can someone please tell me how?