This worked on W10 command-line:
d:\test>echo size(530,530);for(int j=0,m=23,r=0;j^^^<m*m;r=choice(2)*m)line(j%m*m+r,j/m*m,j%m*m+m-r,j++/m*m+m); > test.pde | processing-java --sketch=d:\test --run
I had to create a folder d:\test
See here for the ^^^:
Quotes, Escape Characters, Delimiters - Windows CMD - SS64.com
Output:
:)

