Once I saw the form was getting populated I put back in my old code to get the parameter, but it was still filling the form with "test" text. So I found how to clear the infopath cache with the command line: infopath.exe /cache clearall
Then I tried the command line pass parameter again, and it worked!
Looks like I was cached the ...