I tried :
Join-Path [Environment]::GetFolderPath("Desktop") "\test\test.txt"
but got error Join-Path : A positional parameter cannot be found that accepts argument
I tried :
Join-Path [Environment]::GetFolderPath("Desktop") "\test\test.txt"
but got error Join-Path : A positional parameter cannot be found that accepts argument