Nevermind I got it, forgot to put the select command in there, heres the revised version... string $polyBlocksArray[] = `ls -sl`; for ($myObject in $polyBlocksArray) { select $myObject; polyAutoProjection; } Cheers, Chris