Get Array Index Powershell Script To Restart