Remote_Reboot_Machines.ps1

function Remote-RebootMachine {
    param (
        [string]$ComputerName
    )

    Restart-Computer -ComputerName $ComputerName -Force
    Write-Host "$ComputerName has been rebooted."
}