Your format file will have a section like this
<TableColumnItem>
<PropertyName>Mode</PropertyName>
</TableColumnItem>
You can replace it with a <ScriptBlock>
<TableColumnItem>
<ScriptBlock>
[string]$textAcc = ''
switch($_.Mode[0]) {
'd' {
$textAcc += '📁'
continue;
}
'l' {
$textAcc += 'lnk'
continue;
}
default {
$textACC += '📄'
continue;
}
}
return $textAcc -join ''
</ScriptBlock>
</TableColumnItem>