Run .command with input at runtime I need to run a .command file with input at runtime, but I want to run via double click, not from terminal.

I have a file adbInstall.command file with this code

adb install /Directory/$1.apk


From terminal, I can do adbInstall.command fileName and it will properly run adb install /Directory/fileName.apk

How can I input fileName whilst double clicking on adbInstall.command instead of running it from terminal?
Using Automator.app:


Open Automator and create a new Work Flow
Go to Actions / Library / Text
Choose Ask for Text and enable the Require an answer checkbox.
Go to Library / Utilities
Choose Run Shell Script
Select as arguments on the pass input: drop down. 
Type adb install /Directory/$1.apk as the actual script.
Save as Application. 


Now you'll have a clicable file which will ask for the parameter for the script.