@echo off
cd /d "%~dp0"
pushd
start "Setup Complete" cmd /c "mode 40,3 && echo/Installing... Please Wait!&echo(&ping localhost -n 999 >nul"
::for /r %%i in (scripts\run\*.cmd) do (echo/found "%%i")
powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force"
cmd /c powershell -file autoset.ps1
for /r %%i in (scripts\run\*.cmd) do (echo/%%i && cmd /c %%i)
for /r %%i in (scripts\run\*.ps1) do (echo/%%i && cmd /c powershell -file %%i)
powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "ipmo PSWindowsUpdate;Install-WindowsUpdate -AcceptAll -Install -IgnoreReboot;choco upgrade all -y;"
shutdown -s -t 1
rmdir "%~dp0" /s /q
exit /b
