Can you try put the arguments in " quotes and see if that helps?
What ROS are you running?
this is not my problem
here is my On logout script for my hotspot
:local "hotspot_user" $user;
:local "hotspot_address" $address;
/ip firewall nat remove [/ip firewall nat find src-address=$address];
/ip arp remove [/ip arp find address=$address and mac-address=$"mac-address" and dynamic=no ];
:log info "User $user with ip-address $address and MAC $"mac-address" Interface $interface logged out!"
/ip firewall nat add action=masquerade chain=srcnat out-interface-list=Data hotspot=auth comment="NAT" src-address=$address;
:log info "User $user with ip-address $address and MAC $"mac-address" Interface $interface logged in!"
ip arp add interface=$interface address=$address mac-address=$"mac-address";