This is a great summary of the possibilities to have a file with content (here an invoice) dynamically created. Damien shows here in addition to the HTML also Excel Script and Word Template.
Sometimes the exciting things are in the detail.
You can see this video here on my blog because I have rated this video with 5 stars in my Youtube video library. This video was automatically posted using PowerAutomate.