If Array Not Empty Powershell Foreach Examples Javascript