Skip to content

Script doesn't work if called from another script #6

@srieppo2

Description

@srieppo2

If I run the script from Powershell it works, but if I try to run it from another script I get this error:

The variable '$Scope' cannot be retrieved because it has not been set.
At LogicAppConnectionAuth.ps1:13 char:113

  • ... Browser -Property @{Width=580;Height=780;Url=($url -f ($Scope -join " ...
  •                                                        ~~~~~~
    
    • CategoryInfo : InvalidOperation: (Scope:String) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : VariableIsUndefined

Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions