$excel = New-Object -ComObject Excel.Application
$excel.Visible = $true
$excel.Workbooks.Add()
$workbook = $excel.Workbooks.Item(1)
$worksheet = $workbook.Worksheets.Item(1)
$worksheet.Cells.Item(1,1) = "Name"
$worksheet.Cells.Item(1,2) = "Age"
$worksheet.Cells.Item(2,1) = "John Doe"
$worksheet.Cells.Item(2,2) = 30
$worksheet.Cells.Item(3,1) = "Jane Doe"
$worksheet.Cells.Item(3,2) = 25
$range = $worksheet.Range("A1:B3")
$range.Font.Bold = $True
$excel.Range("B2:B3").NumberFormat = "0"
$workbook.SaveAs("C:\\temp\\people.xlsx")
$excel.Quit()