Thank you m8 for your response.
I come also to a similar solution like you mentioned, but I was not sure and maybe there would be
another solution what I cant figure out.
But now, as you also say this will be hard to solve in a dynamical way.
I hate this in Powershell.
Such a framework and it cant handle such a simple task, what is simple to do in the old cmd...