Perhaps the return 1 is not coming from Imagemagick, but from somewhere else in your code.
If you run the same command with variables resolve to their actual value from the command line, does that return 1 or 0?

Yes I tried this already, from what I am putting into my .net code but now I am trying to call the exact line that I am outputting above ^.