Is it possible to run a .lua file, or a .jar file?

By defining a serial port with SoftwareSerial and sending the data... (RTFM... Read That Fine Manual)!

Doc