Commands/Lexicons/com/atproto/server/Request-AtProtoServerAccountDelete.ps1

function Request-AtProtoServerAccountDelete  {
<#
.Synopsis
    com.atproto.server.requestAccountDelete
.Description
    com.atproto.server.requestAccountDelete
.Link
    https://github.com/bluesky-social/atproto/tree/main/lexicons/com/atproto/server/requestAccountDelete.json
#>

[Alias('Request-AtProtocolServerAccountDelete','atproto.server.requestAccountDelete','com.atproto.server.requestAccountDelete')]
[CmdletBinding(SupportsShouldProcess)]
param(

)

begin {
$NamespaceID = 'com.atproto.server.requestAccountDelete'
$httpMethod  = 'POST'
$InvokeAtSplat = [Ordered]@{Method=$httpMethod}
$InvokeAtSplat["PSTypeName"] = $NamespaceID
$parameterAliases = [Ordered]@{}
$AsByte = $false


    $parameterQueue = [Collections.Queue]::new()

}
process {

$parameterQueue.Enqueue([Ordered]@{} + $PSBoundParameters)            
        
}
end {

            $parameterQueue.ToArray() |
                Invoke-AtProtocol -Method $httpMethod -NamespaceID $NamespaceID -Parameter {
                    $_
                } -ParameterAlias $parameterAliases @InvokeAtSplat -ContentType $(
                    if ($ContentType) {
                        $ContentType
                    } else {
                        "application/json"   
                    }
                ) -AsByte:$AsByte -Property {
                    $_
                } -Cache:$(
                    if ($cache) {$cache} else { $false }
                )
        
}
}