pad-left
Function
Pads text on the left to reach a target length
Syntax
$text = pad-left 10 $number
pad variable to length with spaces
$text = pad-left 10 "42"
pad literal to length with spaces
$text = pad-left 10 "0" $number
pad variable to length with custom character
$text = pad-left 10 "0" "42"
pad literal to length with custom character