A peripheral nerve stimulus can enhance or suppress the evoked response to transcranial magnetic stimulation ( TMS ) depending on the latency of the preceding peripheral nerve stimulation ( PNS ) pulse .