Happened to me once. I was on my Yamaha Kodiak riding the extremely remote country about where the Colorado River becomes Lake Mead so the nearest town was probably Mesquite, Nevada, about 90 miles, when I noticed the dash lights acting oddly. But the bike ran fine. A few miles later I stopped to take a picture, shutting the Kodiak off. When I tried to start it again there was nothing. Zilch. No power to anything. But - my Kodiak is one of the few ATVs that came with a pull starter in addition to the electric start. It takes one hell of a pull - you have to use your legs, pulling with an arm doesn't do anything against the compression of the engine. Crouch down, grab the pull starter handle with both hands, and stand up. Luckily the Kodiak was always an easy starter and that one pull got it running again. Needless to say, I didn't turn it off again until I got back to camp (after dark!). The next morning I found that one of the battery terminals must have broken off inside the battery. If I pushed on it just right, the dash lights would come on. To jump start it to get it loaded up I had to connect to the battery cables, not the battery itself.
As to running a machine off a jump pack - a couple days ago I was out on a side by side ride with a friend of mine this past Saturday and he was telling me that some years past the battery completely failed on his Yamaha Rhino. But he had a small jump pack with him and when he connected it he was able to start and run the Rhino and made it back to camp. Disconnecting the jump pack, even with the Rhino running, caused the engine to shut off.
Picture of the desert I was riding that day:
View attachment 4007779