script for burst

how to write a script to change queue

what i need is if max-limit is 5M/5M to on that queue add burst-limit 6M/6M and burst-threshold and burst-time

thanks