Send log file data from BAT file in Windows

This is an example of sending a log file from a Windows machine. The script reads the log file line by line and sends 25 last lines to U00 every second. Make sure to set your API_KEY and the correct path to your log file in the script.
@echo off
setlocal enabledelayedexpansion

rem === Set your API_KEY and log file path =============================
set API_KEY=933jpw1TEtPscRQRoLvrpE
set LOG_FILE=C:\Path\To\Your\logfile.log
rem ====================================================================

for /f "usebackq tokens=* delims=" %%A in (`curl -s https://u00.io/view_url_by_api_key/%API_KEY%`) do set VIEW_URL=%%A
echo =====================================================
echo View URL:
echo %VIEW_URL%
echo =====================================================
echo Press Ctrl+C to stop sending data.
echo.

rem Create a variable with a line break for later use
set LF=^


rem (the empty line above is required!)

:loop
rem === Check if log file exists ===
if not exist "%LOG_FILE%" (
    echo Log file not found: %LOG_FILE%
    timeout /t 1 >nul
    goto loop
)

rem === Get the last 5 lines from the log file ===
set "VALUE="
for /f usebackq^ delims^=^ eol^= %%L in (`
    powershell -NoLogo -NoProfile -Command "Get-Content -Path '%LOG_FILE%' -Tail 25 | Out-String"
`) do (
    if defined VALUE (
        set "VALUE=!VALUE!!LF!%%L"
    ) else (
        set "VALUE=%%L"
    )
)

rem === Send data to u00.io ===
echo Sending last 25 lines...
curl -s -X POST "https://u00.io/set/%API_KEY%" -d "v=!VALUE!" >nul

timeout /t 1 >nul
goto loop