FormatCurrency
Definition: Returns an expression formatted as a currency
value using the currency symbol defined in the system Control
Panel.
To format a Windows PowerShell value as currency you simply use the .NET Framework formatting commands. The following two commands assign the value 1000 to the variable $a, then use the currency formatting string “{0 :C}”to format the value as currency (note that the value to be formatted is included as part of the –fparameter):