steppermotor with big easy stepper shield and accelstepper library

When i remove the trigger rules and remove the code that repeats it 4 times the stepper is rotating 90 degrees (using acceleration en deacceleration)

That's good. It happens, though, because now there is nothing that cares that the stepper actually gets to a specific position.

The moveTo() method is ignored on subsequent passes through loop, because the stepper is still trying to get to the initially commanded position. Once it does get there, telling it to go where it is causes nothing to happen.

The next step, for you, is to learn how to determine if the stepper is where you told it to go. If it is, you can then take the picture, and tell it to go to a new position.