@Kees Baggerman I am attempting to run your awesome looking script, but get the following error on multiple systems. Any idea what I'm doing wrong?
Nutanix Documentation Script v5.0: Visual Reports, Brand Templates, and Seven Embedded Diagrams – My Virtual Vision
At C
\temp\nutanix\Nutanix Documentation Script v5.0 PC API.ps11622 char:47
+ if ($msg -match '(5[0-9][0-9]|429)' -and $attempt -lt ...
+
~
Expressions are only allowed as the first element of a pipeline.
At C
\temp\nutanix\Nutanix Documentation Script v5.0 PC API.ps12300 char:31
+ function Write-NtnxWordReport {
+ ~
Missing closing '}' in statement block or type definition.
At C
\temp\nutanix\Nutanix Documentation Script v5.0 PC API.ps11539 char:29
+ function Get-NtnxEntityList {
+ ~
Missing closing '}' in statement block or type definition.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : ExpressionsMustBeFirstInPipeline