Script to run Rebuild Sort files

Is there a way to run the "Rebuild Sort Files" utility from a command line or through some sort of BOI script?