RobotStudio event

how to add application grants to a system

Now I am working for plastic project, and I want to add some specific grants for plastic application. Here is the scripts:

copy -from $BOOTPATH/uas_custom_grants.xml  -to $INTERNAL/uas_custom_grants.xml
uas_install_application_grants -file $INTERNAL/uas_custom_grants.xml
register -type uastext -domain Custom -prepath $BOOTPATH/language -postpath /en/uastext.xml

The return status of these commands seems to be OK,but I can not find the added application grants in RSO. Would you please help me to find the reason?