You have it backwards - first you get the job, then you get the visa. It is illegal to do it the way you asked.