Arrays
Removing Items from an array
Removing Items from an array
http://www.jonathanmedd.net/2014/01/adding-and-removing-items-from-a-powershell-array.html
http://www.sapien.com/blog/2014/11/18/removing-objects-from-arrays-in-powershell/
Recreate the array without the first [0] item
$arr = 1..5
$arr = $arr[1..($arr.length-1)]
$arr.GetType()
#Create a collection
[System.Collections.ArrayList]$Collection = 1..5
#Create a collection from $arr
$Collection = {$arr}.Invoke{}
[System.Collections.ArrayList]$Collection = $arr
$Collection.GetType()
$arr.IsFixedSize
$Collection.IsFixedSize
now you can add and remove
$Collection.Add(6)
$Collection.Remove(3)
$Collection.RemoveAt(0)