src/Private/Report/PPT/Build-MCSWhatisSfMC.ps1
|
function Build-MCSWhatisSfMC { Param($Presentation,$AboutSfMC,$Debug) if ($Debug.IsPresent) { $DebugPreference = "Continue" } else { $DebugPreference = "SilentlyContinue" } Write-Debug ((get-date -Format 'yyyy-MM-dd HH_mm_ss')+' - '+'Building What is SfMC Slide') $CurrentSlide = 2 $SlideSfMC = $Presentation.Slides | Where-Object { $_.SlideIndex -eq $CurrentSlide } ($SlideSfMC.Shapes | Where-Object { $_.Id -eq 22 }).TextFrame.TextRange.Text = $AboutSfMC start-sleep -Milliseconds 100 } |