palet allows you to access auto-editor's shell. See the palet reference for compressive documentation.
palet
echo "(displayln \"Hello World!\")" >> hello.pt auto-editor palet hello.pt Hello World!