@echo off rem Double-click to write this checkout's short commands, folder-cd to rem folder-3push, into the PowerShell profile. It runs deploy\wsl-setup.ps1 rem beside it with PowerShell 7 (pwsh) when installed, else Windows PowerShell; rem the profile it writes is that one's. cmd cannot sit in a \\wsl.localhost rem folder, so the "UNC paths are not supported" line it prints is harmless. rem No rem line here holds a redirection or pipe character: cmd still applies rem them after rem, as dostips.com/forum/viewtopic.php?p=15252 shows. where pwsh >nul 2>nul if %errorlevel%==0 (set shell=pwsh) else (set shell=powershell) %shell% -NoProfile -ExecutionPolicy Bypass -File "%~dp0wsl-setup.ps1" %* echo. echo Open a new PowerShell for the commands to appear. pause