i'm trying to remove the last character of an array.
I have an array with:
name1;
name2;
Now i want to remove the last ";".
I'v though on something like:
$array = $array | Select -last 1 | foreach{$_.replace(";", "")}
But thats just an idea. Also not working, because it will leave only the last entry.