I engaged in this sort of shenanigans recently when I wanted to pull a Python interpreter out of a .zip file, save it somewhere temporary, and then execute the .zip file with that extracted Python interpreter, all when you did ./runme.zip.
It's then a (mostly) hermetic Python executable.
When I got it working, it felt like the first genuine 'hack' of my career. Something that's awful, novel*, and awesome at the same time.
* novel at least to me. It wasn't something I copied off stack overflow or a blog post.