This is a simple shell script that replaces "Number of Threads" parameter in the original script, accepting it from the command line.
touch ./run_jmeter.sh
chmod +x ./run_jmeter.sh
And finally insert the code below into the file using your favorite editor.