Public/Targets/Get-SIATargetSet.ps1

function Get-SIATargetSet {
    <#
    .SYNOPSIS
        Lists SIA target sets for Windows strong accounts.
    .DESCRIPTION
        Retrieves target sets used to scope Windows strong account
        provisioning. CyberArk documents this API as available but notes that
        "future development of the feature may require that we change it" -
        treat it as less stable than the rest of psSIA.
    .EXAMPLE
        Get-SIATargetSet

        Lists every target set on the tenant.
    .INPUTS
        None.
    .OUTPUTS
        psSIA.TargetSet
    .LINK
        https://docs.cyberark.com/setup/latest/en/content/privileged-access/apis/dpa-target-sets.htm
    #>

    [CmdletBinding()]
    [OutputType('psSIA.TargetSet')]
    param()

    Invoke-SIARequest -Method GET -Path '/api/targetsets' | ConvertFrom-SIAResponse -TypeName 'psSIA.TargetSet'
}