Windows 8.1.

I need a macro tool that would once a day automatically
-open my Web browser,
-log in to my server,
-empty my spam folder on the server,
-and log out.

Is there a macro tool capable of doing that?