[PSADT 4.0.6] Exit-ADTScript missing

Hello,

i have just update on of our PSADT3.x Script with the help from your PSAppDeployToolkit.Tools.
All Function where successfuly merge to PSADT 4x functions correctly. Only the “Exit-Script -ExitCode 3010” is merged to “Exit-ADTScript -ExitCode 3010”.
This will in result in error:

[Invoke-AppDeployToolkit.ps1] [Error] :: Error Record:
-------------

Message               : Die Benennung "Exit-ADTScript" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
                        
FullyQualifiedErrorId : CommandNotFoundException

The PSAppdDeployToolkit.psd1 manifest file has no Exit-AdtScript and the Module psm1 has only a function Exit-ADTInvocation with a parameter exitcode.

Can you help me?

Thanks
Greetinings
Torte

You need to use Close-ADTSession instead. This has been reported as a bug here, [[Bug] Exit-Script Statement Conversion Issue from V3 to V4 · Issue #11 · PSAppDeployToolkit/PSAppDeployToolkit.Tools · GitHub].([Bug] Exit-Script Statement Conversion Issue from V3 to V4 · Issue #11 · PSAppDeployToolkit/PSAppDeployToolkit.Tools · GitHub)