The NPC Spawn Gun can be found in the Exotics category. To use it, press the spell button (A/X) to switch between types of NPC, and then press the trigger to spawn them.