Hello, I’m trying to deploy my first app using PSADT (7zip) . I’m getting in error near the last lines (Write-Log : The term ‘Write-Log’ is not recognized as a cmdlet, function, or script. Any suggestions how i can resolve this. Write-log shows up at the very end of Deploy-Application.ps1. The block of code is below.
<pre class=“brush: powershell; gutter: true; first-line: 1; highlight: []; html-script: false”>
Catch {
[int32]$mainExitCode = 60001
[string]$mainErrorMessage = “$(Resolve-Error)”
Write-Log -Message $mainErrorMessage -Severity 3 -Source $deployAppScriptFriendlyName
Show-DialogBox -Text $mainErrorMessage -Icon ‘Stop’
Exit-Script -ExitCode $mainExitCode
}