Changed test command for Power Platform to use Get-TenantSettings because Get-AdminPowerAppEnvironment doesn't return anything in some environments, believed to all be GCC, for some reason. Because standard users can run Get-TenantSettings and get the needed data, it is sufficient to test with this regardless of the signed in account being a service admin or standard user.
Changed test command for Power Platform to use Get-TenantSettings because Get-AdminPowerAppEnvironment doesn't return anything in some environments, believed to all be GCC, for some reason. Because standard users can run Get-TenantSettings and get the needed data, it is sufficient to test with this regardless of the signed in account being a service admin or standard user.