I haven't thought about the implementation in detail yet, but here's what I thought:
In packages/shared/src/lib/flows/actions/action.ts
I would add two properties to PieceActionSettings a boolean "forEachChecked" and an array which would contain the selected array
In packages/ui/feature-builder-right-sidebar/src/lib/edit-step-sidebar/edit-step-form-container/edit-step-form-container.component.ts
I would set the two properties in the store in the createNewStepSettings function
In packages/backend/src/app/flows/step-run/step-run-service.ts
In the create function at the switch step, when the ActionType is a Piece I would add something to check the boolean property and the array property and, if there is an array, it loops on the executePiece function changing the parameters at each loop.
I'd like to know what you think and how you'd like me to manage this feature 😄