I have the following BAT file which is intended to archive the specified folder, protect it by a password and copy the archive file to my local Dropbox folder.
You can get the current directory path if from the script path you put this line at the top of your script file:
$CurrentDirectory = Split-Path $MyInvocation.InvocationName