Now what about installing PowerShell on macOS? We have some similar approaches.
The first one is to use Homebrew. Now, Homebrew obviously is a tool for
installing things into macOS, and we can use Homebrew to get the installer
directly from GitHub. We could use Direct Download and download the .pkg
files as well for the versions of PowerShell that we need directly from
GitHub. We can also use the .NET Global tool as well. And then we have
what's called the Binary Archive, the equivalent of a .zip file,
so the .tar file instead, that we can do the install into.