palet allows you to run palet files. See the palet reference for comprehensive documentation.
palet
echo "(displayln \"Hello World!\")" >> hello.pt auto-editor palet hello.pt Hello World!
If no file is given, the repl will be opened.