my pc is getting shut down when i shake
A lot of computers will shut off if they experience a short across any of the internal power wires/traces. Since you say this only happens when you move the computer, it might be that moving the computer causes a piece of material to momentarily short-out the machine, causing it to shut off