Was there an error message ?
Yes that works for me on Windows ; I tested with a YUV422P10 source.
But I used one line (with Y4M header setting) . It might have something to do with line breaks or escapes for you
Code:
-i - -c:v prores -profile:v 3 -an "PATH\test.mov"