Invoke-PSUScript Throwing Errors Due to Parameter

Invoke-PSUScript Throwing Errors Due to Parameter

avatar
Product: PowerShell Universal
Version: 4.2.14


A few different scripts I have that call other scripts within them using Invoke-PSUScript are throwing the following error

[error] Value cannot be null. (Parameter 'value') 


Neither script have a parameter called “value” and one of the scripts doesn’t have parameters at all. The other script has one mandatory parameter that is being filled out when I call the script. All scripts are being run with the latest version of powershell core

Here are the parameters for the script that has parameters:

param(
    [parameter(Mandatory)]
    $AzureID,
    [parameter()]
    [switch]$EXO = $false
)


avatar
(anonymous user)

Recommended Answer

Verified that 4.2.15 resolved this issue

All Comments (3)

avatar

forgot to mention, the nested jobs (the scripts being called by invoke-psuscript) are successful when called

avatar
avatar

Verified that 4.2.15 resolved this issue