I had a suggestion from a co-worker to make the parameters string using the following:
STR = TNSHP + " " + RNG + " " + SCTN
STRQuoted = "\'"+ STR + "\'"
then the page ID would use the STR so
pageID = ddp.getPageIDFromName(STRQuoted)
ddp.currentPageID = pageID
This still does not work. It exports the firsts page instead of the page defined by the parameters.