This should be a simple task, but I have seen several attempts on how to get the path to the directory where the executed cmdlet is located with mixed success. For instance,
In Powershell 3 and above you can simply use
$PSScriptRoot