AndrewPla / TOPdeskPS

PowerShell module to interact with the TOPdesk API
MIT License
30 stars 12 forks source link

Support PS version 7+ in Invoke-TdMethod -File #121

Closed mabster closed 2 years ago

mabster commented 2 years ago

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

AndrewPla commented 2 years ago

Thanks!