remove-item -path 'not existing.txt' -erroraction silentlycontinue; echo $?
False
new-item -path 'dummy.txt'
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/17/2019 8:24 PM 0 dummy.txt
remove-item -path 'dummy.txt' -erroraction silentlycontinue; echo $?
True