I don't see any way to export artboards using a script in a simple way in CC 2015? The only example I can find that uses artboards in a script is "ArtBoards To PDF.jsx" which is included with Photoshop, but it's almost a thousand lines long!
I'd rather just call the "Export As..." command or the "Quick Export" command from my script. Is there any way to do that?