add debugpreference for powershell template