You can ssh to the router, then execute the command.