Question regarding toolkit variable

Hello,
I have a problem regarding the toolkit variable.
I used an variable $envLocalAppData, it was OK to run with ps1 file in windows powershell ISE. But failed to run directly with double click on the Deploy-Application.exe file.
Test-Path -LiteralPath “$envLocalAppData.cameo.systems.modeler\19.0”

It would redirect to wrong folder with double click on the Deploy-Application.exe file
C:\WINDOWS\system32\config\systemprofile\AppData\Local\modeler.

The correct one is as below, which could be realized with ps1 file.
C:\Users\admXXXX\AppData\Local\modeler

As I finally use it with the exe file. Do you know why?

http://allnewandimproved.psappdeploytoolkit.com/guide/Toolkit-Variables.html