Start-XboxSignin.ps1

function Start-XboxSignin
{
    <#
    .Synopsis
        Quickly signs in a player to a given profile number
    .Description
        Signs in a player to a given profile number
    .Example
        Start-XboxSignin
    #>

    param(
    [ValidateRange(1,4)]
    [int]
    $Player = 1,
    
    [ValidateRange(1,10)]
    [int]
    $User = 1
    )
    
    process {
        Send-Xbox -Player $Player -XBox -Wait "0:0:2"
        Send-Xbox -Player $Player -X -Wait "0:0:2"    
        for ($i = 1; $i -lt $user; $i++) {
            Send-Xbox -Player $Player -DPadDown -Wait "0:0:0.1"
        }
        Send-Xbox -Player $Player -A -Wait "0:0:10"
        Send-Xbox -Player $Player -XBox
    }
}