Received the following error.
At .....................\WindowsPowerShell\Modules\PowerShellNotebook\2.9.4\InvokeExecuteNotebook.ps1:61 char:100
+ ... rce -DotNetInteractive:$DotNetInteractive | ConvertFrom-Json -Depth 3
+ ~~~~~~
+ CategoryInfo : InvalidArgument: (:) [ConvertFrom-Json], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.ConvertFromJsonCommand
Exception calling "Invoke" with "0" argument(s): "At line:27 char:38
+ throw "(╯°□°)╯︵ ┻�┻"
+ ~~~~~~~~
Unexpected token '»â”�â”»"
exit
}
}
<#
if ((Get-PackageProvider -Name NuGet).version -lt 2.8.5.201 ) {
try {
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Confirm:$False -Force
}
catch [Exception]{
$_.message exit } } else { Write-Host "Version' in expression or statement. At line:59 char:46
+ ... sion of NuGet installed = " (Get-PackageProvider -Name NuGet).version
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The string is missing the terminator: ".
At line:21 char:23
+ catch [Exception] {
+ ~
Missing closing '}' in statement block or type definition.
At line:7 char:6
+ else {
+ ~
Missing closing '}' in statement block or type definition."
At .....................\Modules\PowerShellNotebook\2.9.4\PowerShellNotebookDSL.ps1:89 char:16
+ return $this.PowerShell.Invoke()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ParseException
Found that the command ConvertFrom-Json does not use the parameter Depth on versions lower then 6.2, I was running on 5.1.