At the most basic level, plain text code eventually converts to 0 and 1. These 0 and 1 represent low and high voltage levels. At this point, voltage levels control the various circuits.
Think of battery powered fans. The current provided by the battery feeds the electric motor, which inside uses electricity to create an emag field, due to which the shaft rotates, which leads to the rotation of the fan blades. This is an example of how stress can become physical.
You can build a “switch” that, provided the voltage is correct, will eventually cause the power supply to stop pulling current from the wall.
Obviously, this is much more complicated than that, but its essence.
To make things easier, a computer consists of layers of abstraction.
At the lowest level are voltages, circuits, transistors and silicon. The next level above the hardware is the operating system. Instead of re-writing the code for each type of hardware access again and again, the OS manages the equipment and provides “hooks” for its use. These interceptors or “interfaces” allow your code to have a common method of accessing disparate equipment. Therefore, using the interfaces provided by the OS, you can write your application.
Each of these layers has sublayers, for example, the equipment can have firmware - a kind of low-level instruction set that determines how the hardware should work, stored in EEPROM and loaded when the drive is turned on. Another sublayer is how the language of a higher A level such as python provides libraries with the ability to write network software without having to directly access the source api socket provided by the OS.
The operating system handles most hardware and software interactions. Hardware vendors write "plugins / modules / drivers" that allow the OS to control their specific hardware.
So, you must write a software application that uses these OS for the interface. For example, if you want to turn off the computer, windows provide an interface for turning off the computer. Your software will call this interface, and after compilation / interpretation it will turn into code that will call the interface for the OS. This interface, in turn, will follow a well-known set of instructions to instruct the computer to shut down. These instructions are 0 and 1, low and high volts, which access a certain part of the computer that is designed to work with the on / off / standby mode and, given the correct signal, will do just that.