Dot source AppDeploy toolkit in a form


With Sapiens PowerShell studio, I am trying to dot sourced appdeploy toolkit. On loading the form, the log is create and fill with psadtk. But once, I am clicking to a button that part of the form is not seeing write-log. Any idea?

@Francois, I assume dot sourcing in Form.Load() the created variables are only known during the Form.Load() and not further on in the form and other controls.
I would suggest trying to create a Form Project in PowerShell Studio and dot source the toolkit in Globals.ps1. Then the different variables should be declared globally.


What do you mean by global.ps1?