diff --git a/Scripts/UVtools.Powershell/Erode-Bottom.ps1 b/Scripts/UVtools.Powershell/Erode-Bottom.ps1 index b7c47bf..7149989 100644 --- a/Scripts/UVtools.Powershell/Erode-Bottom.ps1 +++ b/Scripts/UVtools.Powershell/Erode-Bottom.ps1 @@ -1,4 +1,9 @@ # UVtools Script +if($PSVersionTable.PSVersion.Major -lt 7){ + Write-Error("Powershell version $($PSVersionTable.PSVersion) is not compatible with this script.`n +You need at least the version 7.") + return; +} ######################## # Script Configuration # ######################## diff --git a/Scripts/UVtools.Powershell/List-Layers.ps1 b/Scripts/UVtools.Powershell/List-Layers.ps1 index 511b884..742e745 100644 --- a/Scripts/UVtools.Powershell/List-Layers.ps1 +++ b/Scripts/UVtools.Powershell/List-Layers.ps1 @@ -1,4 +1,9 @@ # UVtools Script +if($PSVersionTable.PSVersion.Major -lt 7){ + Write-Error("Powershell version $($PSVersionTable.PSVersion) is not compatible with this script.`n +You need at least the version 7.") + return; +} ######################## # Script Configuration # ########################