D,
Not absolutely certain if I understand your complete requirement, but let me try. If you want to return variables from every command execution instance in the iteration loop, you can use the WFA2.2 cmdlet Add-WfaWorkflowParameter in your create qtree command to save the Parameter Name and its instant Value and return them as Workflow Execution parameters. So now when the workflow executes and so does the command iteration it will retrun the Name:Value as workflow execution return parameters and not just the final one.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.