I want to run a macro through a PowerShell script. I figured out how to start the macro.
$ExcelPath = "R:\01.DS\04.X-DS\13. Proposed plan\Proposed_plan_WINGS.xlsm"
$Excel = New-Object -ComObject Excel.Application
$Excel.Visible = $true
$Workbook = $Excel.Workbooks.Open($ExcelPath)
$Worksheets = $Workbooks.Worksheets
$Worksheet = $Workbook.Worksheets.Item(1)
$Excel.Run('Iris_prop_plan')
However, when the macro starts, a popup appears which says: update values. How do I include this in the code?
[Microsoft.Office.Interop.Excel.Constants]::xlUpdateLinksNever. Aside from that I doubt we can do anything else without knowing the code of your macro.