bridge setup

kindly is there anyone who can help me with a script that can add all ports to bridge exempting ether1.
I need a script that can be used by different routers even if they have a different number of ports.
when i use /interface bridge port add interface=all bridge=bridge1 is setting the ports as a dynamic which is not possible to remove ether1 after that

I would say that is some dangerous thing to do.
Can be done, but you need to exclude ether1, bridge and possible other, like wlan, pppoe +++