Setting a static IP, default gateway, and nameservers via PowerShell

One of my first steps after installing Linux is to set up networking (static IP address, default gateway, and nameservers). I recently needed to install a number of Windows servers and needed to find a way to do the same using Powershell. This post describes the steps (and missteps) I took to accomplish this.