|
|
|
|
|
by nathanaldensr
1029 days ago
|
|
Windows PowerShell targets the old .NET Framework, which is Windows-dependent. Modern PowerShell targets .NET [Core] and is cross-platform. Also, it's not true that you need to use "CallMethod;" PowerShell can invoke methods with syntax nearly identical to C#'s. |
|
Do-Something withthisfile.txt -AdditionalParam 23
But if you're calling a .NET method you switch to C# syntax with brackets and commas:
$str.Trim('-')
I mean thats kindof obvious but its one of the many things that makes Powershell's learning curve a little steeper. But hey we can always just google it which is par for the course anyway nowadays