Import-Module -Name "Microsoft.SelfService.Portal.PowerShell.Core" -Force function Get-SSPDeployments { return $(Invoke-SSPRequest -Method Get -Endpoint "Deployment") } function Get-SSPDeploymentById { Param( [System.Guid] $Id ) return $(Invoke-SSPRequest -Method Get -Endpoint "Deployment" -Query "$Id") }