Public/Invoke-EventLogs.ps1

function Invoke-EventLogs {
    <#
    .SYNOPSIS
        Gets event logs from a computer.
    .PARAMETER ComputerName
        Target computer
    .EXAMPLE
        !logs stnjn109.sunssc.local
    #>

    [PoshBot.BotCommand(
        CommandName = 'events',
        Aliases = ('event', 'logs', 'log', 'eventlog'),
        Permissions = 'invoke'
    )]
    [cmdletbinding()]
    param(
        [parameter(Mandatory)]
        [string]$ComputerName
    )

    $output = Get-AdministrativeEvent -ComputerName $ComputerName -HoursBack 24
    New-PoshBotCardResponse -Text ($output | format-list -property * | out-string) -Title "Administrative events from $computername in the last 24 hours"
}