use ConvertTo-Json for PS 3.0+