Simply speaking, an npm script
will run the desired command in your shell environment.
In a shell script, the arguments passed can be accessed using $N
where N = Position of the argument.
Talking about your case, the command you want to run is
npm run start:local -- -target.location USER_INPUT
USER_INPUT needs to replaced with the argument that the user has passed. Assuming that the user will pass location as the first argument to the script, it can be accessed using $1
.
I have created this gist to demonstrate the same.

As you can clearly see, I have defined start:local
to access the first argument and then, pass it to the start
script which then echoes out the passed in argument.

UPDATE:
Here is the script for ASKING a value from a user in a prompt format.

Basically, first I am asking for user input then, storing the same in a variable and passing the variable as an argument to npm start

References