Retrieves spam filter templates from the CIPP API.
The Get-CIPPSpamFilterTemplates function retrieves spam filter templates from the CIPP API. It makes a REST API call to the "/api/listspamfiltertemplates" endpoint and returns the templates.
Specifies the ID of the template to retrieve. This parameter is optional.
PS > Get-CIPPSpamFilterTemplates -TemplateID "12345"