Never done that. I have wondered what happens when you shoot a can of spray foam though.
I work for a company that makes spray foam and can get it for free. I pretty much know what’s going to happen and don’t want to clean it up.
Don't do in in the garage.