Create multiple borders on the polysurface?

To create borders like photos
I have to use the Dup Border Face and Dup Border commands

Is there any way to combine those 2 commands?