are there any products that keep animals out of my yard specifically stray dogs and squirrels
There are several animal repellent products available (Liquid Fence; Messina Wildlife Control), but they work as an odor repellent, so the animal has to get close to them to be repelled. Their customary use is for protecting specific plants rather than preventing entry into the entire yard. They might work as a perimeter barrier. Other than that, fencing is the best way to exclude dogs from the yard.