1 $ErrorActionPreference = "Stop"
2 trap { $host.SetShouldExit(1) }
4 $BAZELISK_VERSION="1.7.4"
5 $CWD=(Get-Item -Path ".\").FullName
6 (new-object System.Net.WebClient). `
7 DownloadFile("https://github.com/bazelbuild/bazelisk/releases/download/v$BAZELISK_VERSION/bazelisk-windows-amd64.exe",
8 "C:\windows\system32\bazel.exe")