how to play itunes music's from terminal or aiml pattern

I want to write a command that launches iTunes and play the first song that is in the playlist or random song ,for now I can only launch iTunes from my code but it doesn't start the song automatically, I added --play but its doesn't work ..it there away to make it work? my aiml pattern is here 

```<category> <pattern> PLAY MUSIC FROM MY COMPUTER </pattern> <template> <random> <li>Sure thing! </li> <li>OKAY, </li> <li>OK! </li> </random> <system> open -a /Applications/itunes.app/Contents/MacOS/itunes/play</system> </template> </category>```