protected override void ProcessRecord()
        {
            base.ProcessRecord();
            var ctx = base.Context;

            SPOFile page = null;
            if (ParameterSetName == "List")
            {
                var web = ctx.Site.OpenWeb(Web.Read());
                SPOList list = List.Read(web, true);
                page = list.GetRootFolder(true).GetFile(WikiPageName);
            }
            else
            {
                page = Folder.GetFile(WikiPageName);
            }
            if (page != null)
            {
                SPOWikiPage wikiPage = new SPOWikiPage(page.File);
                wikiPage.SetWikiPageLayout(WikiPageLayout);
            }
        }