Friends ...... real first aid is not a movie or TV show ...... you are probably influenced by watching too many TV and movie clips ......
In the case of cardiac arrest the most common cause of shock treatment (i.e., "electrical defibrillation") is the use of an electric shock. There is only one common reason why electric shock therapy ("defibrillation") is usually used in cardiac arrest: ventricular fibrillation, but it must only be done when it is clear that the type of arrhythmia is ventricular fibrillation. Defibrillation must also be performed using a specialized medical device called a defibrillator, which can discharge electricity through an internal capacitor in a very short period of time, up to a maximum voltage of more than 1,000 volts. In this way, the instantaneous strong current causes the cardiomyocytes to automatically regain control of the heart rhythm (understood as a kind of "reboot") after all the cardiomyocytes have been de-graded and the high pacing points have been restarted. Other devices are unlikely to be a precise replacement for a defibrillator and are likely to be extremely dangerous for both patient and operator (risks include electrically related burns, as well as arrhythmias and respiratory paralysis due to electrocution, etc.).
It should also be noted that in a patient who is already in cardiac arrest, it makes no sense to simply perform artificial respiration without chest compressions, because oxygen cannot be transported throughout the body (chest compressions have been clearly recognized as the most important part of the Hands-Only CPR technique, and it is now believed that you cannot do compressions without artificial respiration even if you don't have to).
If you really want to learn how to "electrocute" someone, you might want to consider an AED (automated external defibrillator), which is a very safe and reliable device that recognizes ventricular fibrillation on its own and decides whether or not to defibrillate. All the operator has to do is follow the graphic and voice prompts. Studies have shown that even untrained personnel can perform AEDs.