Oracle Loop Through Array Powershell Substring Function