Get-ChildItem | tree mi dà un tree wierdly formattato

Il seguente ingresso:

PS STG:\> Get-ChildItem | tree 

Mi da

 Folder PATH listing for volume Data Volume serial number is 6576-C540 D:. ÃÄÄÄAPK ÃÄÄÄAssets ³ ÃÄÄÄAnimations ³ ³ ÃÄÄÄCharacters ³ ³ ³ ÀÄÄÄinhabitant ³ ³ ÃÄÄÄEnvironment ³ ³ ÀÄÄÄProps ³ ÃÄÄÄMaterials ³ ³ ÃÄÄÄCharacters ³ ³ ³ ÀÄÄÄinhabitant ³ ³ ÃÄÄÄEnvironment ³ ³ ÃÄÄÄParticles ³ ³ ³ ÀÄÄÄasteroidParticle ³ ³ ÀÄÄÄProps ³ ÃÄÄÄMeshes ³ ³ ÃÄÄÄCharacters ³ ³ ³ ÀÄÄÄinhabitant ³ ³ ÃÄÄÄEnvironment ³ ³ ÀÄÄÄProps 

…eccetera.

Quando mi aspettavo qualcosa di più formattato:

 ├───APK ├───Assets └───Animations | └───Characters | | └───inhabitant | ├───Environment | └───Props └───Materials | └───Characters | | └───inhabitant | ├───Environment | └───Particles | | └───asteroidParticle | └───Props └───Meshes └───Characters | └───inhabitant ├───Environment └───Props 

Che cosa sto facendo / capendo male?

    Questo è il valore di $OutputEncoding :

     IsSingleByte : True BodyName : iso-8859-1 EncodingName : Western European (Windows) HeaderName : Windows-1252 WebName : Windows-1252 WindowsCodePage : 1252 IsBrowserDisplay : True IsBrowserSave : True IsMailNewsDisplay : True IsMailNewsSave : True EncoderFallback : System.Text.InternalEncoderBestFitFallback DecoderFallback : System.Text.InternalDecoderBestFitFallback IsReadOnly : True CodePage : 1252` 

    Provare a utilizzare il command command Show-Tree .

     09:17 $ Show-Tree C:\Chocolatey\ -Depth 1 C:\Chocolatey\ |--bin \--lib 

    State eseguendo il command in Powershell o Powershell ISE?

    C'è una differenza.

    Questo è quello che ottengo in Powershell ISE:

     PS C:\powershell> Get-ChildItem | tree Folder PATH listing Volume serial number is XXXX-XXXX C:. ÃÄÄÄFolder 1 ³ ÃÄÄÄSubfolder 1 ³ ÃÄÄÄSubfolder 2 ³ ÃÄÄÄSubfolder 3 ³ ÀÄÄÄSubfolder 4 ÃÄÄÄFolder 2 ³ ÃÄÄÄSubfolder 1 ³ ÃÄÄÄSubfolder 2 ³ ÃÄÄÄSubfolder 3 ³ ÀÄÄÄSubfolder 4 ÃÄÄÄFolder 3 ³ ÃÄÄÄSubfolder 1 ³ ÃÄÄÄSubfolder 2 ³ ÃÄÄÄSubfolder 3 ³ ÀÄÄÄSubfolder 4 ÀÄÄÄFolder 4 ÃÄÄÄSubfolder 1 ÃÄÄÄSubfolder 2 ÃÄÄÄSubfolder 3 ÀÄÄÄSubfolder 4 PS C:\powershell> 

    Questo è quello che ottengo in Powershell:

     PS C:\powershell> Get-childitem | tree Folder PATH listing Volume serial number is XXXX-XXXX C:. +---Folder 1 ¦ +---Subfolder 1 ¦ +---Subfolder 2 ¦ +---Subfolder 3 ¦ +---Subfolder 4 +---Folder 2 ¦ +---Subfolder 1 ¦ +---Subfolder 2 ¦ +---Subfolder 3 ¦ +---Subfolder 4 +---Folder 3 ¦ +---Subfolder 1 ¦ +---Subfolder 2 ¦ +---Subfolder 3 ¦ +---Subfolder 4 +---Folder 4 +---Subfolder 1 +---Subfolder 2 +---Subfolder 3 +---Subfolder 4 PS C:\powershell>