@Jens Welcome to PowerShell.org forums.
What are umlauts ?. Can you tell a little more on what you are trying to do and post the error if you are getting any.
PS: I’ve formatted the code for you, please use the code symbol on the tool bar while posting the code.
Guide to Posting Code - Redux - PowerShell Help - PowerShell Forums