Not sure if this is the best way, but I modify SharePoint files within Power Automate Desktop by first saving down the SharePoint file to a local drive, with the below steps

Read from that new Excel file, and do all my manipulation, and then at the end, convert that file back to Binary, and use the Update file SharePoint action
