PSADTV4 and Sapien PowerShell Studio 2025

I was testing V4 in PowerShell Studio (current version with updates) and cant get a script to run without error. I’m using a blank template (output from Master Wrapper)and get the output below. I’m looking into other possible issues on my specific system, but thought i’d post here to see if anyone else has seen this.

Running (Invoke-AppDeployToolkit.ps1) Script…
Platform: V5 64Bit (STA) (Elevated)
Parameters: -DeploymentType Install -DeployMode Interactive
Analyzing Script (Results in Tools Output panel)…
WARNING: The ‘Microsoft.PowerShell.Management’ module was not imported because the ‘Microsoft.PowerShell.Management’ snap-in was already imported.
WARNING: The ‘Microsoft.PowerShell.Security’ module was not imported because the ‘Microsoft.PowerShell.Security’ snap-in was already imported.
WARNING: The ‘Microsoft.PowerShell.Utility’ module was not imported because the ‘Microsoft.PowerShell.Utility’ snap-in was already imported.
ERROR: Import-Module : The expression after ‘&’ in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.
At F:__IP_GLB_TEMPLATE_PSADT4.0.6\Invoke-AppDeployToolkit.ps1:193 char:2

  • Import-Module -FullyQualifiedName @{ ModuleName = $moduleName; Gu ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:slight_smile: [Import-Module], CmdletInvocationException
    • FullyQualifiedErrorId : BadExpression,Microsoft.PowerShell.Commands.ImportModuleCommand

*** PowerShell Script finished. ***

Execution time: 00:00:03
Script Ended

There’s known issues with PSAppDeployToolkit v4 and SAPIEN and it’s a weird situation where neither us, nor them is at fault. I’m in contact with one of their lead devs on their forums, not sure when we’ll find a proper resolution but I wanted you to know it’s known about and is (somewhat) in hand.

1 Like

Is there are new news?

See here for more info: [Bug] Work with SAPIEN to identify why the module doesn't import in their IDE. · Issue #1521 · PSAppDeployToolkit/PSAppDeployToolkit · GitHub

Given how they treated me and ultimately this project, I'd move onto another IDE.

Bad to hear this. Cound't understand this probs, cause the module is working like a charm at ISE and VS Code.

Need Powershell Studio for signing, its so much easier . So i will drive both, VS Code and PW Studio .

Thx for your engadment

1 Like