The safest option is to try and start something on the side, get enough traction to be able to pull together a seed round, and then have that new company sponsor your h1b.
However, from what I heard - if you're on H1B you can only work for the company that sponsored your visa. So, the "best option" itself is pretty dicey.