$repo = Join-Path $env:USERPROFILE 'TibiaPilotNG'
$python = Join-Path $repo '.venv\Scripts\python.exe'
$log = 'C:\ProgramData\TibiaPilotNG\login-task.txt'
Set-Location $repo
& $python 'tools\Login-Tibia.py' *> $log
exit $LASTEXITCODE
