Einführungskurs PowerShell Teil 1 und 2
- Beachten Sie, dass manche PowerShell Funktionen möglicherweise erweiterte Features von Windows Servern etc. benötigt und auch größere Fehler verursachen kann.
PowerShell/vscode-powershell#1035 (comment)
"Hi, this is a problem with encoding. Check the enconding of the original file and if you edit and save this file in VS code the encoding is changed to UTF-8
There is a VS code setting which is not always working correctly (guessing the encoding) : "files.autoGuessEncoding": true
You can also set this setting to save the files with correct encoding: "files.encoding": "windows1252""
ACHTUNG: Dies funktioniert nur für neue Dateien nach der Änderung
If you try to test using Write-Output instead of Write-Host I would guess you get it in the correct order, since Write-Output sends an object to the console through the pipeline.