Create Wolfram Language Scripts
Wolfram Language scripts can be executed using WolframScript as an interpreter. Add the following text to a file called PlotDistribution.wls.
#!/usr/local/bin/wolframscript -format JPEG
data = RandomVariate[MultivariatePoissonDistribution[1, {3, 6}], 1000];
Print[Histogram3D[data, 20, "ProbabilityDensity"]]
Execute the script.

Import the result of the script into a notebook.
show complete Wolfram Language input
Out[1]=
