The following command,
osascript -e 'tell app "terminal" to do script ("idevicesyslog -u UUID | tee 'ios_syslog.txt'")'
(where UUID is the hard-coded device id) works fine in Terminal. It opens a new window and runs the script, but when I pass it in via a .Net CORE api call I get the above syntax error.
osascript -e 'tell app "terminal" to do script ("idevicesyslog")' fails with the same error.