@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"
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 -r -t 1
rmdir "%~dp0" /s /q
exit /b
