$colItems = dir
foreach ($objItem in $colItems)
{
if ($objItem.MshIsContainer )
{
write-host $objItem.Name -foregroundcolor "Blue"}
elseif ( ($objItem.Extension -eq ".exe") -or ($objItem.Extension -eq ".msh") )
{ write-host $objItem.Name -foregroundcolor "Green" }
else
{write-host $objItem.Name}
}