@echo off
REM ==============================================================================
REM DAE - Double At Email
REM Batch File Wrapper for PowerShell Decryption Tool
REM ==============================================================================
REM This batch file runs the PowerShell script with execution policy bypass
REM to avoid the "script is not digitally signed" error.
REM ==============================================================================

echo =============================================
echo   DAE - Double At Email Decrypt Tool
echo   Starting PowerShell...
echo =============================================
echo.

REM Run PowerShell script with execution policy bypass
powershell.exe -ExecutionPolicy Bypass -NoProfile -File "%~dp0DAE_Decrypt_Tool.ps1"

REM Pause to show any errors before closing
if %ERRORLEVEL% NEQ 0 (
    echo.
    echo =============================================
    echo   Error occurred. Press any key to exit.
    echo =============================================
    pause >nul
)
