I'd like to automate preferences on a Windows machine for the date and time formats used throughout the OS.

What PowerShell commands can I use to automate this task of changing values?

* short date format
* short and long time format

These [options are buried deep in Control Panel.](https://i.stack.imgur.com/IL4oV.png)

![enter image description here](https://i.stack.imgur.com/TSjG4.png)

![enter image description here](https://i.stack.imgur.com/r1j7X.png)