help for writing usermanager script

Hi
I write a script in usermanager to assign specific profile to specific customer’s users and also I write another script to remove them. but it doesn’t work pls help me to solve my issue
tanx

my script
/tool user-manager user create-and-activate-profile profile=YYY customer=ZZZ [/tool user-manager user find where customer=“ZZZ”]