Copy the contents of your EneableIIS.ps1 file into the deploy-application.ps1 file.
Then change Write-host
to Write-log
Then if you want to log errors in those non-PSADT commands, see this: Logging for non-PSADT commands - The Toolkit / Tips & Tricks - PSAppDeployToolkit Community