Microsoft Windows - Run the following command in a PowerShell terminal (the typical service name is postgresql-<architecture>-<version> but could change if being deployed manually):
net stop postgresql-x64-13
Linux - Run the following command in a terminal(the service name in linux is typically postgresql-<version>):
systemctl stop postgresql-13