Dealing with paths and filenames can be a pain. Invalid characters, trailing slashes, relative paths can all cause scripts to fail. Here are a few tricks for managing paths in PowerShell. Clean a string Get an absolute path Cleverly concatenate paths