I realize this is basically doing docker for DOS games and incredibly stupid, I'm just curious about the thought experiment
As far as I know, Worms is a normal DOS game, so the only way for that to happen should be a DOS install configured to just auto-start Worms on boot. Which makes sense as a way to keep a kid away from anything that could cause trouble.
I very vaguely recall that there used to be a very few PC games that worked as boot floppies and possibly didn't use DOS at all, but it was a rarity and Worms definitely wasn't one.
https://en.wikipedia.org/wiki/DOS_Shell
Brown Bag PowerMenu was another.
https://forum.winworldpc.com/discussion/15739/software-spotl...
UEFI GOP additionally supports accelerated bitblt, but again YAGNI for 2D game performance at reasonable framerates on a modern PC.