(1): 2: 3: 4: 5: 6:
gc machines.txt foreach ($machine w $machines) { $scriptname = "AB-" + $machine + ".BAT" psexec \ \ $machine C:\temp\ $scriptname }