developer/api/v1/apps/New-Application.ps1
function New-Application { [CmdletBinding(SupportsShouldProcess)] param( [Parameter(Mandatory)] [string] $AppName, [Parameter(Mandatory)] [string] $AppAlias, [string] $AppDescription ) if ($PSCmdlet.ShouldProcess($AppAlias)) { return Invoke-Api Post "/developer/api/v1/apps/$AppAlias" -JsonBody @{ "name" = $AppName "alias" = $AppAlias "description" = $AppDescription } } } |