That box is perfect for hens to lay eggs. Just take out whatever that metal thing is and put dried leaves or hay in the bottom and then put the fake egg in it
I wouldn't have them in a foam box, they could eat it. They should always have food for them all the time. If you built a wood box for outside in the shed and put the fake egg in it they would lay in that.