Check out example codes for "what is chocolatey". It will help you in understanding the concepts better.

Code Example 1

// Chocolatey is a package management software for Windows operating system.

Code Example 2

open PS (PowerShell) as administrator and run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Learn ReactJs, React Native from akashmittal.com