You can use the 5V BEC to power the Pixhawk and the Current sense signal. Both inputs are on the Power Module connector. I don’t think you can use the outputs for Vbat detection as that’s 3.3V full scale input on the Pixhawk.
Why are you using a PIxhawk? Why not a Flight Controller that accepts Vbat directly?