Hello!
There is a variety of basic pea info, including housing info, in the Peafowl Stickies:
https://www.backyardchickens.com/t/389059/peafowl-sticky-topics-index
For the most part, peas prefer to sleep high up in trees and not in a pen, so IMO free ranging in the day and keeping them in at night is not likely to be a successful plan (others here will hopefully share their thoughts about this).
How much property do you have?
I have plenty of property