Public/Get-TvChannel.ps1
function Get-TvChannel { param ( [Parameter()] [switch]$Force ) if (-not $script:TvDataCache -or $Force) { Write-Verbose 'Updating tv data cache' Update-TvDataCache } else { Write-Verbose 'Using existing tv data cache' } $script:TvDataCache.tv.channel } |