Which are the last two parameters? You mean the distribution family parameters? The theory of the KS test says that the parameters must be predefined by the user (ie not using the data). Though if you insist using the data various mle function can help you.
Yes, you have to test one at a time. But you can write a loop to do that for you.