Converting your JSON objects into PowerShell functions