protected override void ExecuteCmdlet() { if (!System.IO.Path.IsPathRooted(SourceFilePath)) { SourceFilePath = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, SourceFilePath); } CurrentWeb.DeployPageLayout(SourceFilePath, Title, Description, AssociatedContentTypeID, DestinationFolderHierarchy); }