Automating VM creation in VMware ESXi with PowerCLI

TL;DR howto automate creation and initial configuration of a VM in VMware ESXi.