Call a python script from the command line

Is it possible to create a python script and execute it via the command line as though it was executed in the script console?

For example, I would like to create a script that automatically configures my Sepasoft related information:

import system

enterprise = system.mes.loadMESObject("New Enterprise", "Enterprise")
enterprise.setName(ENTERPRISE_NAME)
enterprise.setActive(True)
enterprise.save()
...

Is there a way to run this script from the ignition command line? Using java and the jython jar directly unsurprisingly fails to import system.

ignition@c245a9a8fd0c:/usr/local/bin/ignition$ /usr/local/bin/ignition/lib/runtime/jre-aarch64/bin/java -Dpython.import.site=false -jar lib/core/common/jython-ia-2.7.2.3.jar setup_equipment.py
Traceback (most recent call last):
  File "setup_equipment.py", line 1, in <module>
    import system
ImportError: No module named system

Thanks

No. Your external system has to call into Ignition (probably via HTTP), such as with the Webdev module.

That worked and should be sufficient. Thanks for the quick response!