How to set particle's position and momentumdirection

Hi experts,
I want to set the particle’s position and momentumdirection like the “x=-5 5 y=-5 5 z=240 (m) vir= 0 0 1 dir=0 0.5 ”. I can not achieve thatヘ(;´Д`ヘ)
Would you please help me?Thank you very much for your any kind help=^_^=

Best wishes.

Did you have a look at the examples or the documentation?