Just pick one of the scripts and use it. There are only two commands for xray view: one for the entire view and one for the selected object. All the variations call one of those.