How To Convert a Terminal Command into an ".app" file? I want to run a command every-time I click an app icon. I want that app icon in my launcher or app drawer and dock.

The Command I wanna run is this (posted here)

open -na "Google Chrome" --args --profile-directory="Guest Profile"


UPDATE 1:

I've created a "Chrome.sh" file on desktop with above command as content and running

sh chrome.sh


opens up the window that I want. now how do I convert that to an ".app" icon?
These steps are suitable for my use case only. depending on what you wanna do, Changes should be made to the sh file that you're going to create

1) Download the Script called "appify" from Here

2) copy that file to /usr/local/bin, which requires root privileges

3) Fire up Terminal.app and enter 

sudo chmod +x /usr/local/bin/appify


to make appify executable without root privileges.

3) make a chrome.sh file on desktop with content

#!/usr/bin/env bash
/Applications/"Google Chrome.app"/Contents/MacOS/"Google Chrome" --args --profile-directory="Guest Profile"&amp;


4) make sure that the .sh files works by trying this command

sh chrome.sh


5) Run following Commands

cd desktop
appify chrome.sh "My Chrome"


Now this will Create a File called "My Chrome.app" which can be moved into the applications folder and can be used like a normal app.