#Requires –Version

http://www.thomas-franke.net/managing-powershell-version-issues/