Examples/Vulnerable_InsecureDeserialization_1.ps1

function Test-EngineSchema {
    param($pathInput)

    if($pathInput -ne $null)
    {
        $json = [System.IO.File]::ReadAllText($pathInput)
        $schema = [System.Text.Json.JsonSerializer]::Deserialize($json)
        return $schema
    }
}