Squirrel trap? If it's a grey squirrel you legally cannot release it alive.
We had a problem grey squirrel that cost us a fortune in plants by almost destroying our beds and ripping plants out. I mixed seeds into lamb fat which it found very alluring.
Internet search for squirrel traps leads me to believe there are anti squirrel spray. No idead if or how well it works.