Ai move to each point in a foreach loop?

Please note that I’m not using a behavior tree and I’m doing this inside of the AI character. I don’t want to use behavior trees because they’re either quite buggy, or I’m awful at understanding them for the time being. That aside, my issue is that the AI will only move to the first element in the array. Is there any way ! can stop the loop from performing the next iteration until it has reached the first point in the array?