There are lots of things that can look like a cyst on your shoulder. These include actual cysts of various kinds, certain osteopathic findings (specifically herniated trigger points), muscle strains/pulls, swollen lymph nodes, tumors and other masses, abscesses, etc.
Each of these has its own treatment. You need to get it looked at and diagnosed, then you can get it properly treated.
Answer assisted by David Miller, Medical Student