create and write a file in cmd command code example Example: write file using command windows echo some-text > filename.txt