First, you would have to find a job on H1-b temporary employment visa, complete the maximum 6 years (two 3-year terms), and be such a highly valued employee that your employer, if QUALIFIED, would be willing & able to sponsor you for a green card. Then it can take another 8-14 years to actually be approved for & receive the green card.
To have a hope of a job with H1-b visa, expect to need minimum of master's degree + experience in a high-tech/STEM occupation which is - and remains - in short supply in the US. And be able to compete with as many as 100-1000 other applicants from around the world to actually get hired.
Expect to return home by the time your 6 years is up, and often, long before you might complete 6 years. Only about 10% of H1-b workers who ever get & complete a second 3-year term are ever sponsored for a green card. Highly probable you will not remain in US. In fact, highly unlikely you can ever get a job on H1-b visa to begin with as the competition for such positions is extremely tough. Millions upon millions of people from around the world are trying to get such jobs, even temporarily.