You can use your CPAP machine with a external battery pack on airplanes. I do this regularly when flying long distances. In principle you should be able to also just plug in to the power sockets but for some reason this goes against most airlines policies.