Just define a variable in the script that gets populated by $4, make sure in your script that you check to make sure $4 actually had a value passed to it so you aren't passing a blank value to jamfHelper. Then in the line where jamfHelper is called, replace the countdown value (or whatever it is you are using) with the variable from above instead of an integer.
That should make the jamfHelper window do a countdown based on the value passed to $4 instead of something hardcoded in.
One recommendation I would make is to actually hardcode in a value that the script can use as a default setting, in case you forget to or choose to pass something to the script.
Make sense?
Thanks @mm2270 .... makes perfect sense. Just didn't realize that the script would pause until the JamfHelper countdown concluded - sounds like that should work just the way I want.
Yeah, as long as you don't push the process to the background by adding a &
at the end of the jamfHelper line, the script will pause and wait for that to exit before moving on to the next step.