$num1 = Read-Host "Enter first number"

$num2 = Read-Host "Enter second number"


switch ($num1, $num2)

{

    1 {"It is one." }

    2 {"It is two." }

    3 {"It is three." }

    4 {"It is four." }

    default {"Not found"}

}


Get-Content -Path ".\file.json" | ConvertFrom-JSON


$FromFile = Get-Content -Path ".\file.json" | ConvertFrom-JSON

$FromFile | Add-Member -Name "Version" -MemberType NoteProperty -Value "5"

$FromFile | ConvertTo-JSON | Out-File ".\file.json"