If you know how to get at the $Flags variable then it's just the code below, but I'm afraid I'm not familiar with PRISM if you need help getting at it.
$autogears = $Flags & 8;
$autoclutch = $Flags & 512;