Trigger an Experience Manually Through a Script
Userpilot gives you the ability to trigger an experience manually. That is, call the experience to activate using a manual script.
In the targeting section, under "How often this Experience will trigger" choose "Trigger Manually."
You can then use the output unique script to trigger the experience directly from your code.