Ok. You will need to find a school that is certified and will accept you. Here is a link:
If you are going to have your baby in the U.S., you need to make sure that you pay all the medical expenses because they will deny you entry on a B-2 or F-1 and maybe other visas as well for becoming a public charge.
Once approved by a school, you can either use the B-2 to come back and then change status from B-2 to F-1, or you can apply for an F-1 student visa from outside. As to work, I don't have good news for you. As a student you are supposed to come and study. You aren't supposed to come to work and take away opportunities from U.S. students and workers. So work is VERY restricted. Here are some links:
As to getting Residency, most students graduate, do OPT (as described in one of those links) through an employer, then that employer or another petitions for them to get an H-1B professional visa, then that employer or another files for them to get U.S. Lawful Permanent Residency. It is a long process usually many years.
My goal is to provide you with excellent service if you feel you have received anything less, please reply back as I am happy to address follow-up questions and there is no additional charge. Also, should you need to chat on the phone, private email or need help reviewing documentation, I am happy to do so for a small additional cost. Let me know if you are interested in these I am happy to give you more details! If you have no further questions (at this time) please leave a positive rating for my service. I would sincerely ***** ***** You can do that by clicking on the 3rd, 4th or 5th stars or smiley faces if you see them. If you do not see any stars or smiley faces, you may have to scroll up to the top of the page or click on my name and they should come out. Also, your session does NOT close when leaving a positive rating, so you can continue to ask additional questions without additional charge. Thank you for your understanding.