Your function "run" has defined the variable "$args" as the 2nd argument when this is called, but you use it in the function as "$arguments". So you have a typo, either you have to change "$args" to "$arguments", either the other way arround.