How to Make Automatic Mikrotik Queue Tree Using Script (Queue Tree generator)
:for x from 1 to 254 do={/queue tree add name="CLIENT-$x" packet-mark="mark-pc$x" parent="GLOBAL" max-limit=2M}
You can try Queue Tree generator here
Credit: https://www.o-om.com/2020/12/queue-tree-generator-for-bandwidth.html