You really should try resetting the PMU whenever you are having power related problems (i.e. sleep, restart, shutdown, power up, dim screen, internal devices shutting off while the machine is running, etc...).
I would try resetting the PMU *before* bothering to pull the RAM out.
Also, if you hold the power button down for 5-10 seconds, your machine should turn off. You shouldn't have to pull the battery or unplug it. This goes for any machine since at least the original iMac.