help with script----use of address list for routing

Hi.

I need help to write a script.
What i Want to do is capture all TCP traffic on port 443 (secure port)
and send it to the firewall address list.
That I Can do…

Now i want a script that will use these ip’s in address list, and create static routes for them, all through specific IP (route)

I cannot find a way to do this in Winbox interface…

Thank you
PS: I have no experience in scripting.

Can’t you just use mangle rules to assign routing-marks, and then create a route for those marks?