That plastic trim will pull off exposing a metal strip.
So, you can pull the plastic strip and add more screws. But......it looks like the wood is rotted so that might be a problem. The soft rotted allowed the current screws to pull loose.
It also looks like the previous owner did not maintain the caulk.
Let us know how your repair comes out.
Peace
Dave