Our company has some computers with an older version of Powershell as not all machines are allowed to receive certain updates due to dependencies. I am using the nuget-extension Microsoft.PowerShell.5.1.ReferenceAssemblies on computers with Powershell 5.1 and Microsoft.PowerShell.5.0.ReferenceAssemblies on computers with Powershell 5.0 in my C# CmdLet Project however I can not use both together.
How can I support multiple Powershell versions in my C# CmdLet project?