dir/b > files.txt
I guess it has to be done in PowerShell to preserve unicode signs.
Get-ChildItem actually already has a flag for the equivalent of dir /b:
Get-ChildItem
dir /b
Get-ChildItem -name (or dir -name)
Get-ChildItem -name
dir -name