Can this be scripted ? (Slicer)

since Rhino doesn’t have a loop slicer command,
can something like this be scripted?
function:
run script > select edges in order
script adds a loop thru middle of each surface & splits
result (bottom image)


thnx!