I figured out the problem. The command worked fine when I ran it manually, and I eventually discovered that my automation script omitted the path to the cup file when passing the parameters.