There's a mistake in Ted's code - you can't do ~>cutRows on a viaHeader object. You can do that on a via instance, but not a viaHeader. So instead you'd need to do:
; take car, because there should only be one match
viaHeaders = car(setof( vh deGetCellView()~>viaHeaders
vh~>viaDefName == "M5_M4" && cadr(assoc("cutRows" vh~>overrideParams)) == 2 ))
viaInstances = viaHeaders~>vias
foreach(via viaInstances geSelectFig(via))
This will select the vias afterwards.
I think you should also contact customer support to request that you can specify cutRows/cutColumns etc in the search criteria for finding vias on the Find command (it doesn't work, because it's not a "property").