Send Battery Monitor using companion computer

I have a customized sensor that sends data containing voltage, current, temperature and rpm. I want my flight controller to use voltage and current as Battery Monitor.
Also I want to see temperature and rpm data in GCS.
I have a Jetson Nano as a companion computer with a Mavlink connection to my flight controller.
Is there any way to do this using a companion computer?

Use mavlink_msg_battery_status.

@geofrancis Thank you for your response.
When I used this message I saw this result in Mavlink Inspector of Mission Planner:


I can’t see battery 2 voltage(which one I want to send) in HUD but battery 1(which the flight controller sends) is visible.
Also, there will be a new link for connection in the connection part of Mission Planner, and when I select the new connection battery 2 voltage will be visible.
Would you please help me have this value in vehicle Mavlink messages(that flight controller uses this value for failsafe)?

@geofrancis Thank you for your response.
I managed to do that but no success was achieved.
I did this using LUA and Mavlink together as I stated in post.