I blogged about solving this issue by changing environment path variables.
Please check http://powershelldiaries.blogspot.in/2015/08/backup-sqldatabase-restore-sqldatabase.html.
As I mentioned above also, the answer by "Samuel Dufour" helped me. I just thought of an another way.