Public/Get-GHLatestRun.ps1

function Get-GHLatestRun {
    <#
        .Synopsis
        Gets the last job that ran for the specified repo
 
        .Example
        Get-GHLatestRun powershell powershell
    #>

    param(
        [Parameter(Mandatory, ValueFromPipelineByPropertyName)]
        $owner,
        [Parameter(Mandatory, ValueFromPipelineByPropertyName)]
        $repo,
        $AccessToken,
        [Switch]$Raw
    )    
    
    Process {
        $run = Get-GHRun -owner $owner -repo $repo -AccessToken $AccessToken -Raw:$Raw
        if ($run) { $run[0] }    
    }
}