Anyone know if there exist any lisp to Copy ViewPort's layer settings to Selected Layout's Viewports?

Something like this:
1 Activate the first Layout to change
2 double click to ViewPort
2 Thaw/ Freeze your layers (viewport)
3 Run AutoLisp routine
4 Copy the configuration to all selected Layouts