Choose OU that contains the computers you want in your commandline(s):
Also handle computers in sub-Organizational Units?
Only run command if the computer is alive (WMI)?
Type the command you want to run, put in {C} where you want the computername:
Example: Ping {C} -n 2 | "C:\WINDOWS\system32\ping.exe" {C} -n 2