Add-Content should create folder but returns error
According to this documentation Add-Content should create a folder when it does not exist: "This command creates a new directory and file and copies the content of an existing file to the newly created file."
However, I get an error: "Add-Content : Could not find a part of the path 'C:\tests\test134\logs\test134.log'."
Seems like a clear issue to me. Either in the documentation or the functionality.
Forgot to mention: I'm running PowerShell version 5.1.16299.64