How to escape spaces etc. in when passing variable to shell

Very useful. Thanks, gentlemen!