Search notes:
Remove-Item: A positional parameter cannot be found that accepts argument
The following command causes the error Remove-Item : A positional parameter cannot be found that accepts argument 'two.txt'.
remove-item one.txt two.txt
However, one.txt two.txt
is not an array, it is two separate arguments.
Thus, in order to delete multiple files, they need to be separated by commas so that PowerShell recognizes them as items of an array;
remove-item one.txt,two.txt