examples/Export-DtcInventory.ps1

[CmdletBinding()]
param(
    [Parameter()]
    [string]$OutputPath = '.\Datto-DTC-Inventory.csv'
)

Get-DattoDtcAsset -All |
    Select-Object organizationId, organizationName, name, hostname, assetUuid, status, type, backupState, lastBackup, screenshotSuccess, externalIp, smbiosVendor, smbiosName, agentCode, protectedVolume |
    Export-Csv -LiteralPath $OutputPath -NoTypeInformation -Encoding UTF8

Get-Item -LiteralPath $OutputPath