sorry, i forgot to specify that the exec command works in 2 ways.
The version you are using is not waiting for the program to exit, and thus you have not the result ready when "load" is executed.
To do so, you just have to write it this way:
{.exec|batchfile|out=x.}