I have serious difficulties to understand what you're after, and I can't connect your request to what you posted. Except that you may want to supply the "new network devices" as a parameter to your script; then, assign the $1 parameter to the a1 variable. If this doesn't answer / solve your problem, become way more informative.
Please DON'T post a picture of your code, this makes it impossible to copy it for analysing etc.
And, the "shebang" #!/binbash NEEDS to be in the first line to be effective.