to get residence permit on basis of running business in Poland you have to fullfill one of the following conditions:
1) achieve annual net income min. 60 000 PLN (ca 15000 USD) and pay tax on it, current rate 9%;
2) employ at least 2 polish people for full time for 1 year and pay taxes and social contribution on it. min salary is 2600 PLN Gross.
3) make investment (buy goods, property, machinery) that enable to achieve such income in the future.
Once you register a company you can apply for business visa in Polish embassy in your country .