GlobalParameter.SetValue in Document

Hello,
Thanks for the reply.
Of course, I mean opening them in the background.
In this post [Global parameter set value not working] c.poupin solves it through python. . I am trying to modify his python script to change current document to document in background I can’t do it. Any suggestions?