@echo off
REM PCode Windows Dependency Verification Script
REM Delegates to PowerShell implementation for better functionality

setlocal

REM Get directory where this script is located
set "SCRIPT_DIR=%~dp0"

REM Check if PowerShell is available
where powershell >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
    echo [ERROR] PowerShell is not available on this system
    echo PowerShell 5.1+ is required to run this script
    echo Please install PowerShell or use manual installation method
    endlocal
    exit /b 1
)

REM Delegate to PowerShell script
powershell -ExecutionPolicy Bypass -NoLogo -NoProfile -File "%SCRIPT_DIR%check.ps1" %*

REM Preserve exit code from PowerShell
exit /b %ERRORLEVEL%
