Summary: Learn how to change the value of an element in a Windows PowerShell array.
How can I use Windows PowerShell to change the value of the first element in an array?
Use the Set method and specify the element number and the new value, for example:
PS C:\> $a = 1,2,3,4,5
PS C:\> $a.Set(0,50)