In your problem, there are two things that need be considered!
Firstly, you should obtain a background spectrum. After that, you run measurements on your samples - usually software allows you to automatically deduct background spectra from them. Secondly and lastly, you perform a baseline correction in order to obtain a beautiful spectrum! Often software allows you to perform this step either automatically or manually