Closed MarcLaf closed 1 year ago
Adding a check to make sure the variable is not already a string. When in PowerShell 7, the $CurrentVersion is already a string and not an object like in PowerShell 5.1 and doesn't need to be converted. This results in an error.
Adding a check to make sure the variable is not already a string. When in PowerShell 7, the $CurrentVersion is already a string and not an object like in PowerShell 5.1 and doesn't need to be converted. This results in an error.