|Ok, here is the finished script (names have been changed....):|
for /f %%a in (computers.txt) do (
echo processing computer %%a
copy /y \\SERVER\app.msi \\%%a\c$\app.msi
psexec \\%%a -u DOMAIN\admin -p ???????? msiexec /q /i \\%%a\c$\app.msi DEPLOYID=123456789012345678901234567890
psservice \\%%a -u DOMAIN\admin -p ???????? restart appSERVICE
Many thanks to nbrane for a quick response and getting me started in the right direction.