This template is a quick start sample for PowerShell scripts targeting Azure DevOps Server/Services. It contains helper functions for invoking REST calls that correctly handle authentication as well as functions to properly set up various credentials.
Simply copy this template to a new folder and add additional parameters and "business logic" as needed.