@echo off
chcp 65001 >nul
setlocal
cd /d "%~dp0"
title YarMenu POS - Desktop shortcut

echo.
echo Creating YarMenu POS desktop shortcut...
echo (Copies to %%LOCALAPPDATA%%\YarMenu\POS then creates shortcut)
echo.

powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0create_desktop_shortcut.ps1"
if errorlevel 1 (
    echo.
    echo [ERROR] Could not create shortcut.
    pause
    exit /b 1
)

echo.
echo Done. Use "YarMenu POS" on your desktop.
pause
exit /b 0
