concept subscription in category powershell
appears as: subscriptions, subscription, Subscription

This is an excerpt from Manning's book PowerShell Deep Dives.
This function checks whether a subscription is active. How do you check it? You take the incoming parameter and store it in an array. For example, SubscriptionYear can come in as either a single year (2012), an asterisk (*), or a series of years (2010,2011,2012). You compare the incoming value with the current year and an asterisk. If there’s a match then you know this is an active subscription for that year. You do the same for SubscriptionMonth and SubscriptionDay. If the subscription is active you output that object so it can be consumed by the next function or cmdlet in the pipeline. An example invocation of this function is provided in figure 3.