VBScript to export data to text file

Have a look here The operator "bes action" is not defined

Call this interface with your VBScript ?