Ship in a Bottle

Prime Timeline

The sentient hologram Moriarty, which Lieutenant Commander Data created by accident in 2365, is activated again. He attempt to sieze control of the Enterprise-D in order to force the crew to devote their energies to finding a way to give him permanent form. The crew are able to fool him into thinking he has achieved his goal.1