Write-Output 'LOG'
Get-Content (Join-Path $env:USERPROFILE 'TibiaPilotNG\.one-click.log') -Tail 80 -ErrorAction SilentlyContinue
Write-Output 'PROCESSES'
Get-CimInstance Win32_Process |
    Where-Object { $_.CommandLine -like '*Start-PilotNG-OneClick.ps1*' -or $_.Name -in @('client.exe', 'Tibia.exe') } |
    Select-Object ProcessId, ParentProcessId, Name, ExecutablePath, CommandLine |
    Format-List
Write-Output 'TASKS'
Get-ScheduledTask |
    Where-Object TaskName -Like 'TibiaPilotNG*' |
    Select-Object TaskName, State |
    Format-Table -AutoSize
