Windows (and MacOS plus *ix) predate the numerous extensions created to hold video. The OS just doesn't know how to tell what is a video file and what isn't, so you will need to run that command line for each extension you wish to move.
Alternatively, move the *.txt files to another directory, move everything remaining, then move *.txt back, a la
for /r "M:\movies\new\" %%x in (*.txt) do move "%%x" "M:\placeholder\"
for /r "M:\movies\new\" %%x in (*.*) do move "%%x" "M:\movies\new\"
for /r "M:\placeholder\" %%x in (*.txt) do move "%%x" "M:\original directory\"
(*.*)
, right?*.*
and qualify the move statement:... in (*.*) do if not %%~xx == .txt move ...
.