A PNS delivers small electrical pulses through electrodes placed on the skin near a targeted nerve. The pulses stimulate the nerve, causing muscle contractions. The response is then observed to assess the function of the nerve and the degree of muscle relaxation, especially during surgical procedures.