[CmdletBinding(SupportsShouldProcess)]param( [string[]]$AddOnSlug, [switch]$NoPatternMatch ) Get-HA_Addon 'Running' -AddOnSlug:$AddOnSlug -NoPatternMatch:$NoPatternMatch | ForEach-Object { Invoke-HomeAssistantCli addons stop $_.slug }