Functions/Out-Excel.ps1
function Out-Excel { param( $outputData, $outputFileName ) $timeStampDisplay = "_$scriptTimeStamp"; $outputData | Export-XLSX -Path "$ScannedDataPath\$outputFileName$timeStampDisplay.xlsx" -WorksheetName "T$currentTenantId" -Append; } |