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?