How can I run rasa x from a python script?

I’ve been trying to run rasa x through the following script:

from rasa.main import main rasa.main.main()

but I’m not sure how to enter the command line input like ‘rasa x’. Is there a simple way to make this possible without modifying the package?