protected override void ExecuteCmdlet()
 {
     if (!ParameterSpecified(nameof(AllAvailable)) && !ParameterSpecified(nameof(Name)))
     {
         // Return the current applied site policy
         WriteObject(this.CurrentWeb.GetAppliedSitePolicy());
     }
     else
     {
         if (ParameterSpecified(nameof(AllAvailable)))
         {
             WriteObject(CurrentWeb.GetSitePolicies(), true);
             return;
         }
         if (ParameterSpecified(nameof(Name)))
         {
             WriteObject(CurrentWeb.GetSitePolicyByName(Name));
         }
     }
 }