LTE radio status to file - CME22

When running the terminal commands I get a readable result:


[admin@Router] > :global “lte_command” [/interface ppp-client at-chat [find] input=“at+qcsq” as-value]

[admin@Router] > :put $“lte_command”

output=at+qcsq
+QCSQ: “eMTC”,-45,-69,243,-10
OK

Now when asking to put the result into a file, the file is not getting the text:
:execute [/interface ppp-client at-chat [find] input=“at+qcsq” as-value] file=“test.txt”

The content of the text file becomes:
syntax error (line 1 column 7)

Any ideas how to get this status information collected into a file?

I am running RouterOS 7.18.2

“output=” is unrecognized RouterOS command.

you must pass a string to :execute, not a function result.

Where you see :execute [] syntax?