I am new to PowerShell. When trying to write a simple script that deletes the contents of a folder and then fills it with files copied from a different folder, I always get
Have you try :
remove-item D:\path_A\* -recurse -force