Convert number to string with leading zeroes

[int]$int = 7
$int.ToString('000')
Details
The number of leading zeros can be controled by the value in the ToString()

Example
PS C:\> [int]$int = 7
>> $int.ToString('000')

007