You could probably just have the AppleEvent contained within a very short AppleScript, and then run that through the terminal, with the command
/usr/bin/osascript ~/Documents/Scripts/foo.scpt
You can also pass commands instead of telling it to open a script. Hence, you ought to be able to send an AppleEvent just by sending a doing it the normal way in an AppleScript.