I cannot get this script to run, it generates a lot of errors - this is being run "as admin":
PS C:\Temp\PS> .\AzureADDeviceCleanup.ps1 -verify
At C:\Temp\PS\AzureADDeviceCleanup.ps1:205 char:17
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:210 char:209
- ... k Button--medium Button d-lg-none color-fg-inherit p-1"> <span cla ...
-
The '<' operator is reserved for future use.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:428 char:13
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:96
- ... ="" data-disable-with="" data-dropdown-tracking="{"type":&q ...
-
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:103
- ... a-disable-with="" data-dropdown-tracking="{"type":"blo ...
-
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:146
- ... "type":"blob_edit_dropdown.more_options_click",&q ...
-
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:153
- ... type":"blob_edit_dropdown.more_options_click","co ...
-
Missing expression after unary operator ','.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:153
- ... ype":"blob_edit_dropdown.more_options_click","con ...
-
Unexpected token '&' in expression or statement.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:166
- ... ot;blob_edit_dropdown.more_options_click","context":{& ...
-
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:193
- ... options_click","context":{"repository_id":19 ...
-
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
I cannot get this script to run, it generates a lot of errors - this is being run "as admin":
PS C:\Temp\PS> .\AzureADDeviceCleanup.ps1 -verify
At C:\Temp\PS\AzureADDeviceCleanup.ps1:205 char:17
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:210 char:209
The '<' operator is reserved for future use.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:428 char:13
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:96
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:103
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:146
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:153
Missing expression after unary operator ','.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:153
Unexpected token '&' in expression or statement.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:166
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:193
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed