right managed to get further, got a vbscript to pull in the data and write the file to the local disk, however when opening up the file be it pdf or word - it is corrupted so think the write process isnt doing it correctly so need to read more into this.