Standard PowerShell Object Array
[System.Collections.Generic.List[PSObject]] $arr = @() $arr.Add($objectA) $arr.Add($objectB)
Reverse a string
$array = $string.ToCharArray() [array]::Reverse($array) -join($array)
Convert date to string with specific format
[datetime]$date = Get-Date $date.ToString('yyyy-MM-dd')
Convert number to string with leading zeroes
[int]$int = 7 $int.ToString('000')
Convert number to string with certain number of decimals
[double]$pi = 22/7 $pi.ToString('0.00')
String to uppercase on first letter only
$string.Substring(0,1).ToUpper() + $string.Substring(1,$string.Length-1).ToLower()
