Bash#
There are various ways of transmitting telemetry data from the command line.
Depending on the desired protocol, please read about:
How to do data acquisition using MQTT.
How to do data acquisition using HTTP.
For simulating a simple periodic measurement, see send a sawtooth signal in order to transmit a dynamic, slowly oscillating sawtooth signal from the command line.