# Listing 3: FileNames1.ps1 # Retrieve the content from the batch file. # Assign the content to the variable. $cmd = get-content c:\scripts\filenames.cmd # Run the batch command in $cmd. cmd /c $cmd