You could do it in less steps by checking the parameters of the current time. See this sample, for example:
DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime
IF ((CurrentDateTime.Hour > 23 AND CurrentDateTime.Minute > 55) OR CurrentDateTime.Hour = 0) = True THEN
EXIT Code: 0
END
It will stop if it's after 23:00 or between 00:00 and 01:00.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.