OK. So it sounds like you need to create a many-to-many relationship between products and the profile post type for the children, so that you can connect the children to the programs.
(At some point you will want to familiarise yourself with Toolset relationships to understand how you will be able to display programs a child is signed up to, or children that are a signed up to a specific program.)
For this particular scenario we are discussing, your users have arrived at some page after placing an order, and the order ID is available on the page (you didn't say how you are doing that, but it sounds like you have it working).
On this page you need to display all of the products from the order, with a form to connect child posts to the products.
The UI for this may be a little clunky—it's not exactly an anticipated use-case—and it may be that it could be improved by the judicious use of a little custom code and the relationship API.
But working with the Toolset UI elements, you would add a View to this page which retrieves the products for the specified order, and then in the loop output of the View, for each product you show a relationship form where you can connect children posts to the product.
The relationship form would be to connect the current product from the View loop to a children post specified in the form dropdown.
To have a View output the products from an order you can use the shortcode wpv-ordered-product-ids (https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-555686) to generate a comma-separated list of product ids, so you can pass that to your View as a shortcode attribute (https://toolset.com/course-lesson/passing-arguments-to-views/).
The problem here is that passing shortcode attributes in this way is a feature of legacy Views and isn't directly supported by the block editor for Views.
Unless you are familiar with and happy using the legacy editor, here's how you get round that limitation.
Create a Content Template and then add your View block to show products to that template. It will need a Query Filter for the product ids with values passed by a shortcode attribute you specify (as explained in the documentation I linked to above). Design the output of your View as required.
The Content Template is just a block-editor-based container to hold the View. Make a note of the name of the View, you will need that.
On the page where you want to display the View you must insert the View using a wpv-view shortcode (https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-view), to which you can add shortcode attributes as described in that documentation.
But, we've run into a limitation of the wpv-ordered-product-ids shortcode. It can only be used in the context of an order, i.e. when displaying a single order post, or in the output of a View which queries and loops over orders.
So, you have 2 choices. The first is to persist with your current solution, where placing an order redirects to some page, passing the order id. You would add a View to that page to query orders, and use a Query Filter to only return the order specified by the passed order ID. Then the output of this View has that order post for context, and you can add your View to display products of the order here (via shorcode so that you can pass the product ids output by the wpv-ordered-product-ids shortcode as a wpv-view shortcode attribute.)
Alternatively, instead of redirecting from placing the order to some page, you could redirect to the order post itself, and create a Content Template for single order posts. That way you could dispense with the extra View created in the previous step to provide the order context, because you already have it.
I didn't mention much about the relationship forms to connect children and programs, but they are described here: https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/
There is quite a lot to digest above, it's a fairly complex topic.
Please take the time to go through it and the relevant links, and I'll hand you back to Christopher who should be able to help you with any specific part of this overall plan.