Activating iTunes without showing the window

I want to be able to activate iTunes if its closed with a script, but I don’t want iTunes to pop up or anything. Right now I have it so iTunes visible is set to false right away but that produces an annoying flash of the screen. Any suggestions?

Stop creating new topics for the same question.