Bend a part body

Hey guys. I've been frustratingly looking for a way to manageably bend a part for my project. I've included 2 screenshots, first is how the part actually is, second is how it needs to be. This is a part of a bracket that attaches to balcony railing. Its a soft metal thin sheet that can bend(in real world). The square in the second image is the railing and that's how i need it to wrap around it.

I created the second image my creating the shape on the front plane using line and spline then offset to 1mm (thickness of sheet) and then extruding along the width. The reason why I can't actually use the second part is that I need screw holes along the length of this strip and I can't do that after creating this shape (hole wizard doesnt work on non planar surfaces) so i have to create holes while the part is straight and then bend it in the desired shape.

Sorry for your trouble but any ideas how to do it?

SolidworksParts And Features