目的 PPTファイルからPNG画像への変換スクリプトです。 ソースコード 手続き的 $file = "" $target_dir = "" Add-Type -AssemblyName Microsoft.Office.InterOp.PowerPoint $app = New-Object -ComObject PowerPoint.Application $app.Visible = $True $pres = $app.Presentations.open($file) $pres.SaveAs($target_dir, [Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType]::PpSaveAsPNG, $False) $pres.Close() $app.Quit() [gc]::collect() [gc]::WaitForP