It would be nice to have a command that allows setting the working directory inside a program. execpath is almost the same except that it requires you have started the program... There exists a menu command to set working directory, so the functionality exists, but there does not seem to be a programming command for the same functionality. (I searched the reference manual in Acrobat, and did not locate such a function...)
My apology if I missed such a command.