Stepper motor + button

Hello,

I have a project where I have a stepper motor and with the help of a button in HA it should turn 200 steps every time I press the button.

I tried to load a finished “blind curtain” configuration and can get it to spin 200 steps but after a couple of times it stops (fully open) and I have to press back button (close) a couple of times until it reports as “closed” and then I can to run the motor 200 steps again.
Instead, I reworked the script and created a service that can be called and specify 200 steps. The problem here is that it only works once. If I restart HA, it works again but only once.
How do I make it so that I only have a virtual button that spins the motor 200 steps in one direction?

I googled a lot but I could only find examples with a physical button…
There is no physical button hooked up and I have no need for it. Don’t want to have to connect a physical button and enter pin layout.

Thank you in advance.