Execute Node Tree from a bpy script outside animation nodes
Find AN node tree and execute():
import bpy

anTreeNames = [&quot;NodeTree&quot;, &quot;NodeTree.001&quot;]

for name in anTreeNames:
    tree = bpy.data.node_groups.get(name)
    if tree:
        tree.execute()