Bash Execute Command From Variable Resistor Function