This is a good application for Follow Me. Draw a rectangle as a path and a cross section of the frame molding. Here I’ve created a path and profile. Then I selected the rectangle as the path, got the Follow Me tool (I used a keyboard shortcut) and clicked on the profile.
As it is, your arcs at the corner are not on the right plane for the miters so they’d need fixing first.
That model didn’t have to be in so I just forgot it to delete.
The blocks are made to be able to fix and remove that frame from a wall tablet chassis (the model I forgot to delete hehe) and I made it because I wasn’t good enough to create clips.