Have you considered PowerShell? It's open-source, and typed, and definitely usable from the command line with lots of resources for.
https://github.com/PowerShell/PowerShell
And dotnet run can now run single files of C# code, with the ability to import other projects and packages if needed.
#!/usr/bin/dotnet run
https://andrewlock.net/exploring-dotnet-10-preview-features-...
And dotnet run can now run single files of C# code, with the ability to import other projects and packages if needed.
https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-...https://andrewlock.net/exploring-dotnet-10-preview-features-...