Closed mabster closed 2 years ago
Invoke-TdMethod -File was non-functional on PowerShell version 7.
Invoke-TdMethod -File
Instead of just checking for versions 5 or 6 of PowerShell, we now check for "5 or less" and "6 or greater" so that PowerShell 7, and future versions, are supported.
Tested the new switch syntax on both 5.1 and 7.x.
Resolves https://github.com/AndrewPla/TOPdeskPS/issues/120
Thanks!
Description of the Change
Invoke-TdMethod -File
was non-functional on PowerShell version 7.Instead of just checking for versions 5 or 6 of PowerShell, we now check for "5 or less" and "6 or greater" so that PowerShell 7, and future versions, are supported.
Testing
Tested the new switch syntax on both 5.1 and 7.x.
Associated/Resolved Issues
Resolves https://github.com/AndrewPla/TOPdeskPS/issues/120