With Office 2010/2013 you could download the PIA Primary Interop Assemblies and do stuff that would control Excel etc, like building an ad-hoc spreadsheet.
Add-Type -Assembly "Microsoft.Office.Interop.Excel"
$app = New-Object Microsoft.Office.Interop.Excel.ApplicationClass
Does the same thing work with the Excel in Office 365?