How to score with a first ending, jump to next movement, then finish with 2nd ending

I have a score I’m working on that plays multiple measures of choir and piano then finishes with the first ending. It then should jump to the next movement which then jumps to a signo at the beginning of the score that finishes with the 2nd ending. When I play the score, it plays through the first ending, jumps to the first page signo, goes through ending 2, then jumps to the next movement. Is there a way to make this work the way I want it to instead of what it’s doing? Thanks for your help!

Welcome to the forum. See this post for a way to achieve a similar playback sequence.