Update CanvasDeploy.ps1

Fixed issue of being a powershell newbie... needed to define the functions before using them when running for first time.