Trying out some things and writing and compiling a type in Powershell

PS C:\Users\siliconrob\Desktop> $MyCode = @" $MyCode = @"
>> public class Calc
>> {
>>     public int Mul(int a,int b)
>>     {
>>         return a*b;
>>     }
>> }
>> "@
PS C:\Users\siliconrob\Desktop> Add-Type -TypeDefinition $MyCode
PS C:\Users\siliconrob\Desktop> $myCalc = New-Object -TypeName Calc
PS C:\Users\siliconrob\Desktop> $myCalc.Add(20, 10)
30
PS C:\Users\siliconrob\Desktop> $myCalc.Mul(20, 10)
200
PS C:\Users\siliconrob\Desktop>

Not a big fan of it, but on Windows it fills partial the role that python does in Linux/macOS.  Especially now that Ubuntu 18+ is installing python 3 as a core library.