I need a script

hi
I need a script which used to access my router through mac address instead of ip address

Do you mean you need a script which runs on another operating system, that can mac telnet into your routerboard and perform commands?