Public/SSL/func_Send-OPSSLApproverEmail.ps1

function Send-OPSSLApproverEmail {
    param (
        [int32]$OrderID
    )
    try {
        $body = @{
            id = $OrderID
        }
        $approverEmail = Get-OPSSLOrders -ID $OrderID
        $request = Invoke-OPRequest -Method Post -Endpoint "ssl/orders/$($OrderID)/approver-email/resend" -Body $body
        if (($request.data.id -eq $OrderID) -and ($request.code -eq 0)) {
            $returnCode = $true
        }
    }
    catch {
        $_.Exception.Message
        return $false | Out-Null
    }
    Write-Host "(Re)sent new approver e-mail to $($approverEmail.EmailApprover)"
    return $returnCode | Out-Null
}