I'm sure it's possible, but is it straight-forward how you're supposed to do this properly? And is there any way to access the Wolfram kernel from the command-line (like a python executable)?
Update: I guess I owe the Wolfram Language another look.
Yes, you can use the kernel from the command line:
https://reference.wolfram.com/language/tutorial/UsingATextBa...
https://reference.wolfram.com/language/tutorial/WolframLangu...
It is possible to write notebooks directly in a text editor and then have them run. That just gave me an idea for a weekend project...