Invasive ventilation requires a tube inserted into you and it's very unpleasant. You are often sedated while this is done.
Sedation requires monitoring and care to supply drugs, nutrition, cleaning, exercising and stretching muscles, and many more tasks.
Noninvasive ventilation is like CPAP machines. They just cover your mouth.
I don't know why you'd use one or another but there's likely a reason the sick are being sedated for covid-19
If you were building one yourself, it would take some education. Google 'ventilator induced lung injury' and dive into the complexity. ...
https://www.walmart.com/ip/LINE2design-Adult-BVM-Bag-Valve-M...
With the respirator your describing which is a complicated expensive machine.
There are several stories of people being kept alive for years using just bag valve masks.
https://www.dailymail.co.uk/health/article-2270178/Chinese-m...
This is a pdf about a project a MIT student worked on in 2010 that automates the squeezing of the bag.