Powershell Missing statement block after if
问题 I have the follow code. But there is a {[( )]} missing somewhere. I can't find it. I is in the 'if section. But I dont know why it isnt working If someone can give a tip or something is it will be create. Thanks for reading. $date = (get-date).AddDays(-1).ToString("yyyMMdd") $erroractionpreference = "SilentlyContinue" $Excel = New-Object -comobject Excel.Application $Excel.visible = $True $ExcelSheet = $Excel.Workbooks.Add() $ExcelCell = $ExcelSheet.Worksheets.Item(1) $ExcelCell.Cells.Item(1