Options to do this
1.Can? use Script mode to execute? command from lua script and pass argument to script e.g $hostname and capture in batch file using Windows batch scripting variable scheme i-e %1% to get the first variable.
2- Use "Command" mode and pass argument part of command e.g
Put the variables in quotes to get the full string
example
C:\testing\sendsms2.bat "$message" "$hostname" "$time" "$severity" "$level"
and capture in batch script per Windows batch scripting techniques
?