Joshua Stenhouse (@joshuastenhouse) walks us through a step by step tutorial consuming vSphere REST APIs using PowerShell.

Get the script on the blog https://virtuallysober.com/2018/01/04/introduction-to-powershell-rest-api-authentication/