You are unlikely to find a sketch that does what you want
- Can you make the stepper run on command ?
- Can you make the stepper move through 90 degrees then stop ?
- Can you make the stepper turn through 90 degrees then stop for a fixed period before doing it again ?
- How will the stopping period be adjusted ?
- Do you understand how to use millis() for timing ?