Resume-XboxThread.ps1

function Resume-XboxThread {
    <#
    .Synopsis
        Resumes execution for one or more threads suspended on the host console.
    .Description
        Resumes execution for one or more threads suspended on the host console.
    .Example
        Resume-XboxThread
    .Link
        Suspend-Thread
    #>

    param(
    # If set, will resume all suspended title threads by using DmGo
    [Parameter(ParameterSetName='All',Mandatory=$true)]
    [Switch]
    $All,
    
    # The specific thread ID to resume
    [Parameter(ParameterSetName='Thread',Mandatory=$true)]
    [Uint32]$ThreadId,
    
    # If set, will continue to process the exception that stopped thread
    [Parameter(ParameterSetName='Thread')]
    [Switch]$ProcessException
    )
    
    process {
        switch ($psCmdlet.ParameterSetName) {
            All {
                $result = $xbdm::DmGo()
                if ($result) {
                
                }
            }
            Thread {
                $result = $xbdm::DmContinueThread($ThreadId, $ProcessException)
            }
            
        }
    }
}