Script for change user group

Hello guys!
Im trying to make a Script that would change the group of users.
What is the command to remove user and add user via terminal window?
I was try this :
/tool user-manager user remove disabled=no group-name=test name=test password=test subscriber=admin
and I get error like this :
expected end of command (line 1 column 40)

Im planing to make 2 script -
1.for remove then add in specific group1
2.for remove then add in specific group2
and run these 2 script in specific intervals via scheduler.

Many thanks for any help!

Here Im go again :smiley:
Well I found command which is running fine on terminal fine and swich user test to responding group:

/tool user-manager user set 26 name=test password=test group-name=2M subscriber=admin disabled=no
/tool user-manager user set 26 name=test password=test group-name=test subscriber=admin disabled=no

But when I made script for example like this :

add name=test-on-2M-speed policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="/tool user-manager user set 26 name=test password=test group-name=2M subscriber=admin disabled=no"
add name=test-on-test-speed policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="tool user-manager user set 26 name=test password=test group-name=test subscriber=admin disabled=no"

But script is not swich user group … Any help ?