Finding ways of powering electric cannons in a compact and lightweight manner has been a common source of interest to me. While looking through some articles and other answers I found out about explosively pumped flux generators which appear to me to be a fairly lightweight way of providing the extreme currents necessary for something like an electric cannon. What I imagine is a small shoulder fired railgun, similar in form to an anti tank launcher, which triggers an EPFCG charge to create a brief but powerful current sufficient to propel a high velocity kinetic penetrator. The gases created by the detonation would be vented through the rear of the chamber to relieve pressure and counteract recoil forces. Given the forces involved I imagine a reasonably compact version would only be designed to survive one shot and then be disposed of.
Would a mechanism like this work in theory and if so, what would be some potential difficulties or nuances of the system?