I wasn’t aware of the fact that PowerShell is now a cross-platform open source project so I wanted to share some brief facts and thoughts here.
- So the version that everyone has on their Windows 10 computer (a.k.a. Windows Powershell) is PowerShell 5.1.
- The cross-plattform version (a.k.a. PowerShell Core) is PowerShell 6.0
- Windows PowerShell will apparently not be developed further, but probably supported for a long time.
- Powershell Core currently only supports a fraction of the commands of Windows Powershell (425 vs 2,838) but more and more commands will be added.
- See Benefits of PowerShell 6.0.1 vs 5.1 on Windows? - Spiceworks for a more detailed comparison.
My guess is that already now, PowerShell Core probably supports everything we ever need for duplicacy scripting so it probably makes sense to try and do all our scripting in Powershell Core/ Powershell 6 because those scripts can then be used across platforms, not just on windows.
As a minimum, it would probably be good if anyone publishing a powershell script specifies whether it works on PS5.1 and/or PS6. Presumably, most PS6 scripts will work on PS5.1 and vice versa, but there are some pitfalls.
But if even the Linux and Mac folks here could start using powershell, that would probably make life easier for all of us.