Collapse

Hi,
is there any script or any way to automatic click on

3DSMax->Utilities->Collapse->CollapseSelected

i need a script to do this for my selected objects automatic .

http://www.uppic.com/uploads/14220455151.jpg

thanks :)