You must find out what the problem is. At first open a cmd and execute the statement locally. Often it is problem of access rights and so the shell doesnt know how the pathes have to get resolved. Proof that the calculation doesnt hint to some other problem.
In my experience the
CreateProcessAsUserW and other functions from that API led to better results. A bit cumbersome, but it worked.