Create Files from Command Line in Windows

Create a file with content:

echo "whatever content" > filename.txt

Works in any Windows console (CMD, PowerShell, Git Bash).