Motion panel > trajectories>Collapse

I'm creating a script to help automate a process and there is one part I cannot figure out. I thought I could turn on the MAXScript listener and it would show me, perhaps I'm not using it correctly but I can't get the info I need.

I want to know how script the process where I go to the motion tab > select Trajectories > and use the Collapse function for specific Range and sample setting.

I also searched the MAXScript docs but couldn't find much.