Change all Queue type in Queue Simple - MikroTik Script RouterOS

Very simple how to change all Queue type in Simple Queue

Change all Queue type to default

foreach i in=([/queue simple find]) do={
local cmd ("queue simple set " . $i . " queue=default/default total-queue=default")
:execute $cmd
}
Change all Queue type to default-small

foreach i in=([/queue simple find]) do={
local cmd ("queue simple set " . $i . " queue=default-small/default-small total-queue=default-small")
:execute $cmd
}
Change all Queue Type to PCQ

foreach i in=([/queue simple find]) do={
local cmd ("queue simple set " . $i . " queue=pcq-upload-default/pcq-download-default total-queue=default-small")
:execute $cmd
}
Change all Queue Type to hotspot-default

foreach i in=([/queue simple find]) do={
local cmd ("queue simple set " . $i . " queue=hotspot-default/hotspot-default total-queue=hotspot-default")
:execute $cmd
}
Change all Queue Type with custom Queue Type

foreach i in=([/queue simple find]) do={
local cmd ("queue simple set " . $i . " queue=your-custom-queue-type/your-custom-queue-type total-queue=your-custom-queue-type")
:execute $cmd
}
Credit: https://www.o-om.com