Negotiate a licence
Of course, your chance of doing so are not good - computer game companies routinely pay millions to use trademarks like this (and they usually get exclusive rights) and that’s probably out of your price range.
Stopping you doing what you want to do without paying for the privilege is effectively what trademarks exist to do.
If the usage was incidental and clearly used Star Trek IP to identify Star Trek products, like the usage in The Big Bang Theory TV show, then that’s OK. However, your usage is using Star Trek as the core of the product and that’s not OK.
Others have suggested that the trademark owner may not pursue you - that’s unlikely. Unlike copyright, trademarks that are not defended can be lost - this trademark is worth billions, they will happily spend tens of thousands to grind you into the dust.