There are several ways to create JSON data in PowerShell. Writing JSON directly You can write it directly by enclosing it in @" and "@. $age = 123 $name = "cortana ...