If it's being taken and uncoupled as part of a consist under AI control the brake is applied by the AI. If you are driving in dcc mode, take it to the spot, stop your train and use the A key. Uncouple the car/wagon, back to the loco, A key again and drive off.