If its giving an error code for hydraulic or engine oil pressure it may be as simple as a pressure sender. I'd start by checking that they are both operational and open up when the machine is started. They should only close when there is a fault or the machine isn't running.
Being this is a G it has no seat sensor, and the brakes are a park pin. They are either on or off. There is no making them slip.
You should here a loud click after you pull down the seat bar, you push a Green button and then you will here the click (park pin disengageing) this green button also puts power to a valve that unlocks the lift and bucket tilt of the loader.
As far as shutdowns go, the park pin and lock valve have nothing to do with this.
From what I understand the only things that shuts the machine down is low oil pressure, high water temp, low charge pump pressure, and possibly rpm to high.
The fuel is held in the on position by a soliniod on the injection pump, if a loose connection, bad relay interupts this power the engine shuts off.
Does it always shut down after the same amount of run time? If oil pressure shuts it off, it can be restarted and run for something like 30 seconds at a time, for emergengy reasons.
If the shutdown is completely eradic, I'd be betting on a loose wire, if its always the same, then think sensor. If the Bobcat tech plugs his laptop into the machine it stores every sensor out of range reading for the life of the machine. If it a faulty sensor it should show the same fault over and over.
Ken
Ken