Given Powershell updates over the past 8 years, this answer may not have existed in '10.
The trick is to assign the number of columns in the format block of the calculated expression {0:N0} , after it is assigned, it will align the column to the right.
In the original example, include ,15 as part of the number formatting:
@{Name="Freespace(byte)"; Expression={"{0,15:N0}" -f $_.FreeSpace}}
I usually use the number of characters of the Name = value to make sure the entire name is visible.
source share