Ok I see where the problem is, now I use the same powershell version like you but now: 2017-04-07 10:32:56 Writing temporary pools json object to E:\personal\scripts\Bigipreport-4.3.8\json\pools.json.tmp New-Object : Exception calling ".ctor" with "4" argument(s): "Could not find a part of the path 'E:\personal\scripts\Bigipreport-4.3.8\json\pools.json.tmp'."At E:\personal\scripts\Bigipreport-4.3.8\Bigipreport-4.3.8.ps1:1541 char:18 + ... eamWriter = New-Object System.IO.StreamWriter($($Global:poolsjsonpath ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Exception calling "Write" with "1" argument(s): "Cannot write to a closed TextWriter."At E:\personal\scripts\Bigipreport-4.3.8\Bigipreport-4.3.8.ps1:1542 char:24
+ ... eamWriter.Write($($Global:pools | ConvertTo-Json -Compress -Depth 5))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ObjectDisposedException
2017-04-07 10:32:56 Failed to update the temporary pool json file
2017-04-07 10:32:56 Writing temporary monitor json object to E:\personal\scripts\Bigipreport-4.3.8\json\monitors.json.tmp
New-Object : Exception calling ".ctor" with "4" argument(s): "Could not find a part of the path 'E:\personal\scripts\Bigipreport-4.3.8\json\monitors.json.tmp'."At E:\personal\scripts\Bigipreport-4.3.8\Bigipreport-4.3.8.ps1:1552 char:18
+ ... eamWriter = New-Object System.IO.StreamWriter($($Global:monitorsjsonp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Exception calling "Write" with "1" argument(s): "Cannot write to a closed TextWriter."At E:\personal\scripts\Bigipreport-4.3.8\Bigipreport-4.3.8.ps1:1553 char:24
+ ... Writer.Write($($Global:monitors | ConvertTo-Json -Compress -Depth 5))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~