Why not use an (existing) emulator?
Text adventures (without gfx) should work on most computers when using few and simple instructions.
Like the ones from Creative Computing.
But you will always have limitations (different file formats, media, screen resolution etc).
So you would have to make adjustments for most machines, and so you are close to emulators.