As far as I know, there is  currently no simple way to directly write any desired content to a text file on the device file-system with any MobiControl script.

 

Unless there is some in-house developed apps/services working with existing MobiControl device agent to support such functions, the usual workaround is to use the "rename "or  "copy"  script command(s) together with some template data files, especially when the content pattern has small finite number of variations.  File-sync rule or .pcg package can be used to deploy relevant template files to targeted devices, and MobiControl script can be used to rename or copy/move relevant file to required location.