script with terminal OK with button or scheduler NO help

simple script test

/interface virtual-ethernet set name="name" 0 ;

when i run the script in terminal with “/system script run test” everything is OK but with button run script in winbox or with scheduler it wont write the name, please help

i have checked all policies in script

mk ver 5.26

thank you

Use [find] instead of the number to select the interface, something like this:
/interface virtual-ethernet set [find name=vif1] name=“name”

it works not with virutal ethernet interface but with bridge interfaces, thank you anyway