How to do a force shutdown in Windows?

Here is how to do a force shutdown/restart in Windows.

To force Shutdown:

In command prompt, type in

shutdown -s -t 1 -f <— the -s means shutdown; -t means time; -f means force

To force Restart:

In command prompt, type in

shutdown -r -t 1 -f <– the -s means restart; -t means time; -f means force