@echo off
echo Installing Windows Subsystem for Linux and Bash...
echo.

REM Enable Windows Subsystem for Linux feature
powershell.exe -Command "Add-WindowsCapability -Online -Name 'Microsoft-Windows-Subsystem-Linux'"

REM Download and install Ubuntu 20.04 LTS package
curl.exe -L -o ubuntu-2004.appx https://aka.ms/wslubuntu2004

REM Install Ubuntu 20.04 LTS package
powershell.exe -Command "Add-AppxPackage -Path .\ubuntu-2004.appx"

REM Launch Bash shell
bash.exe

echo.
echo Windows Subsystem for Linux and Bash installation complete!
