how to run a terminal command by pressing a button

I want how to run a terminal command by pressing a button in swiftUI macOS
how to run a terminal command by pressing a button
 
 
Q