VBA: WshShell.Exec PowerShell: WshShell.Exec PowerShell: ProcessStartInfo VBA: WshShell.Exec Excelマクロから簡単にPowerShellの出力結果を取得する方法を考える ' Excel 2019, Windows 11 (2024年4月頃) ' 参照設定 ' Windows Script Host Object Model Option Explicit Public Function f(ByVal cmd As String) Dim exitCode As Long Dim scOut As …