This minigame is a single-player Choose Your Own Adventure style game set on board the Enterprise D from Star Trek: the Next Generation.
A warp core breach is imminent. You have three choices. You can try to repair the core, fly a shuttlecraft away from the ship, or transport down to the planet below.
Similarly to the classic books, only one of those three choices will save you, while the others will kill you (except for one case where you're given a second chance to make one of the other two choices).
The game randomly selects which of the three choices is right every time, so you'll never know which choice to make.
Requires Star Trek Adventure gametype. You'll have to search for it in-game (GT: Starship Forge), because minigame variants are apparently not showing up on Waypoint).
Here's an additional gameplay video (tried to add it to the map's youtube links, but it wouldn't show up):