protected override void ExecuteCmdlet()
        {
            CustomActionEntity ca = new CustomActionEntity
            {
                Title = Title,
                Location = "ClientSideExtension.ApplicationCustomizer",
                ClientSideComponentId = ClientSideComponentId,
                ClientSideComponentProperties = ClientSideComponentProperties,
                ClientSideHostProperties = ClientSideHostProperties
            };

            switch (Scope)
            {
                case CustomActionScope.Web:
                    CurrentWeb.AddCustomAction(ca);
                    break;

                case CustomActionScope.Site:
                    ClientContext.Site.AddCustomAction(ca);
                    break;

                case CustomActionScope.All:
                    WriteWarning("CustomActionScope 'All' is not supported for adding CustomActions");
                    break;
            }
        }