Running command line using swift.

I’m trying to make it so if I press a button on Xcode it will run a command line file, but I don’t know how to do it.

Running command line using swift.
 
 
Q