PowerShell PowerShell $dirpc="F:\pcs.txt" foreach ($ap in Get-Content $dirpc) { (Get-WmiObject -class win32_operatingsystem -computername $ap).win32shutdown(12) } 12345 $dirpc="F:\pcs.txt"foreach ($ap in Get-Content $dirpc){(Get-WmiObject -class win32_operatingsystem -computername $ap).win32shutdown(12)}