sharepoint online – Creating a custom control/action for a document library

I am wondering if it is possible to add a custom control/action for files in a document library in SharePoint. For example, when I select a file or click the ellipsis for a file I get the options to preview, share, copy link, download ,etc… I want to know if it’s possible to create my own custom option for this which will trigger a ms flow and pass the file properties to ms flow?
To be more specific, I already have a ms flow that automatically picks up files when they are uploaded to sharepoint and copies these files to a different environment. I just need to see if I am able to implement a custom option, when you click that option it will trigger the flow for that file and copy the file to the different environment or if it is even possible to add custom options for files in a document library.

enter image description here