modify spawn param for windows