Thanks for reply.
sorry i am not using task.Run() method to pass multiple arguments we need to pass arguments by providing spaces .
newExecAction("program.exe", id+ " "+ startDate + " "+ endDate + " "+ time, null
));
so that exe will take this as arguments based on the spaces provided
taskDefinition.Actions.Add(