Is there a simple export contexts applescript?

Hi, I am new to AppleScripting so wondering if there is a simple script that will run the Export function (as text) but where I can choose the context or perspective?

I know I can do it manually but am looking at an automation where at the start of day or after a review I can run a script that will produce several text files (which BTW I open up in Taskpaper, as I prefer to work from a text environment, though OF remains my main task and project manager).

Apologies if this has already been covered, perhaps you could point me in the right direction.