$PSScriptRoot is your friend...
Had to learn this lesson the hard way yesterday. I was working on a script that uses relative paths...
Tags: powershell, shell, cli, beginners