Hello,
I think you may need to make two different queries:
Example
Enabled:
Get-Aduser -Filter 'Enabled -eq $true' -Properties *|select SamAccountName |export-csv C:\outputEnabled.csv
Disabled:
Get-Aduser -Filter 'Enabled -eq $false' -Properties *|select SamAccountName |export-csv C:\outputDisabled.csv
Incorporate that filter into your script and you should be set.
If this is helpful please accept answer.