There is probably no single action to do this. You have to make this step-by-step.
Let’s take it step-by-step.
You want to make each guy spawn and go to another location. Therefore, after each spawn, the target vector must change.
One way: make game objects, give them a gizmo, and set up the formation you want. Then get each object’s location one after another to use them as waypoints. You can put them into an array, and loop through them.
Another, more versatile way is to create the pattern mathematically with simple arithmetic. For example, after each spawn, add X+1 to an offset variable. Then add the offset to the target location vector, and each time repeat. Now you should see them aligh in a single row. If you want several rows, you need to check the offset each time and use a float compare: if offset is larger than some number (let’s call it threshold), reset it to zero, add Z+1 and continue as before, with X+1 until the second row is complete and so on. Make the threshold a variable and you can adjust how wide or deep the formation is. Also make the +1 a variable and you can control how close they are placed.