protected override void ProcessRecord()
        {
            var ctl = new PsMenuItem();

            SetControlProps(ctl);

            ctl.Text          = Text;
            ctl.SecondaryText = SecondaryText;
            ctl.Url           = Url;
            ctl.Icon          = Icon;
            ctl.IconColor     = IconColor;
            ctl.OnClick       = OnClick;

            if (NewWindow.IsPresent)
            {
                ctl.NewWindow = NewWindow.ToBool();
            }

            if (IconOnly.IsPresent)
            {
                ctl.IconOnly = IconOnly.ToBool();
            }

            if (Split.IsPresent)
            {
                ctl.Split = Split.ToBool();
            }

            if (Divider.IsPresent)
            {
                ctl.Divider = Divider.ToBool();
            }

            if (SubMenuItems != null)
            {
                foreach (var subMenuItem in SubMenuItems)
                {
                    ctl.SubMenuItems.Add(subMenuItem);
                }
            }

            WriteObject(ctl);
        }