DotNet driver should interpret the first parameter passed on the command line as the name of an executable it should call. If an executable file with that name is found on the path then any subsequent parameters are passed through to that executable:
calls
If the executable is not found, DotNet cleanly notifies the calling script and returns 1.
dotnet: 'compile' is not a dotnet command. See 'dotnet --help'.