Stop-Xbox.ps1

function Stop-Xbox
{
    <#
    .Synopsis
        Turns an xbox console off
    .Description
        Turns an xbox 360 console off
    .Example
        Stop-Xbox
    #>

    param()
    
    Send-Xbox -XBox -Wait "0:0:2"
    Send-Xbox -DPadRight -Wait "0:0:1" -Repeat 2
    Send-Xbox -DPadDown -Repeat 10
    Send-Xbox -A -For "0:0:1" -Wait "0:0:2"
    Send-Xbox -DPadUp -Wait "0:0:0.5"
    Send-Xbox -A
}