Add "Step 1 Linked/Unlinked Entity" in scripts

Similar to this:

But more specifically the ability to reference in scripts. There are work arounds, but they are not ideal.

The specific use case I’m looking for is with “Entity Linked” on references. It should run an action that is dependent on the entity where the mention occurs.