Public/Library/Get-CurrentUserSavedShows.ps1

<#
    .SYNOPSIS
        Get a list of shows saved in the current Spotify user's library.
    .EXAMPLE
        PS C:\> Get-CurrentUserSavedShows
        Grabs data of all saved shows and returns them in a list
    .PARAMETER ApplicationName
        Specifies the Spotify Application Name (otherwise default is used)
#>

function Get-CurrentUserSavedShows {
    param(
        [string]
        $ApplicationName
    )

    $Method = 'Get'
    $Uri = 'https://api.spotify.com/v1/me/shows?limit=50'

    # build a fake Response to start the machine
    $Response = @{next = $Uri }

    While ($Response.next) {
        $Response = Send-SpotifyCall -Method $Method -Uri $Response.next -ApplicationName $ApplicationName
        $Response.items # this return items that will be aggregated with items of other loops
    }
}