Auto Hotspot Login by client

Ok this is an odd request for a howto.

I basically use my router to share internet in the home

I get my net access from a provider who uses RouterOS and I have to use their hotspot system to log in.

Is there a script i can write or a way to auto log in after lets say a power failure? That way my router can initiate a connection automatically…

pls advise.