GUIを使わない、エビデンスを残すため、、

Chocolateyをインストールする。

Windows向けのパッケージ管理ソフト「chocolatey」が便利 - Qiita

以下のコマンドを、管理者権限で開いた「コマンドプロンプト」か「Windows PowerShell」で叩くだけ。との事、、

ですが、「コマンドプロンプト」でじゃないとダメだな、、

  @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Microsoft Windows [Version 10.0.19041.207]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Owner>@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.15.
Downloading 7-Zip commandline tool prior to extraction.
Extracting E:\TEMP\chocolatey\chocInstall\chocolatey.zip to E:\TEMP\chocolatey\chocInstall...
Installing chocolatey on this machine
WARNING: Setting ChocolateyInstall Environment Variable on USER and not SYSTEM variables.
  This is due to either non-administrator install OR the process you are running is not being run as an Administrator.
Creating ChocolateyInstall as an environment variable (targeting 'User')
  Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
  before you can use choco.
Installation of Chocolatey to default folder requires Administrative permission
s. Please run from elevated prompt. Please see https://chocolatey.org/install f
or details and alternatives if needing to install as a non-administrator.
発生場所 E:\TEMP\chocolatey\chocInstall\tools\chocolateysetup.psm1:212 文字:5
+     throw "Installation of Chocolatey to default folder requires Admi ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Installation of...-administra
   tor.:String) [], RuntimeException
    + FullyQualifiedErrorId : Installation of Chocolatey to default folder req
   uires Administrative permissions. Please run from elevated prompt. Please
  see https://chocolatey.org/install for details and alternatives if needing
  to install as a non-administrator.

おお、管理者で実行してなかた、、

/* -----codeの行番号----- */