I’ve “sparked” cells by hitting ’em quick with blasts from a 12V-18V laptop adapter, but in theory, you want to control/limit the maximum zappage by using a cap.

Then again, I recall someone using a Lionel train transformer the size of an anvil to electroshock some cells back to life (mightta been NiCd). Yeah, AC. Worked, but I wouldn’t try it.