Hello
You say you didn’t manage to do it but your shape seem very near from this discussion
What were the problem when using the script posted ?
And on first post you didn’t even post a file.
@Thomasgt101 looking at the file there is already a first error, surfaces are disconnected, you need to join the exterior faces to make a Brep.