Skip to content

Instantly share code, notes, and snippets.

function Get-Fahrenheit {
[CmdletBinding()]
Param(
[Parameter(ValueFromPipeline=$true,
Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[ValidatePattern('^(\d*\.)?\d+$')]
[decimal]$CelsiusTemp
)
[PSCustomObject]@{