Open App Store on a smartphone with a script.

I want to direct users to my app, by asking them to click on a website link. A script is supposed to open App Store on the device they are using and, if possible, take them straight to my app 🙂