[Solved]Writing a file in a rule

If you’re using OH3, the syntax for executeCommandLine changed. Best to assume that older posts like this are for legacy versions.