Assemble an Array of Macs to shudown via ssh?
Looping through the elements of an array.

my_macs=( mac125 mac122 etc )

for n in "${my_macs[@]}"
do
    ssh pcpatch@"${n}" 'sudo bash -s' &lt; ./documents/ShutdownUPTIME.sh
done