How to manipulate child data using server side scripting

I recommend you check this thread where another user has a very similar question.