@king gamer222, you've got a problem here. The Mac App Store is written in Objective-C/Objective-C++, so you'd have to learn that. Also, I don't know how the app store works, and probably won't ever know, so I can't tell you how you'd do that. Don't try. Just use the graphical version. If you do attempt to write a CLI interface, I would recommend you ask apple for permission first.
"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." — Charles Babbage.
My Github