I have a PowerShell script that will close a running process if its running and then copy some files.
When I run a .CMD file from within CM2012 I use
the old DOS command %~dp0 which makes any command run from the source location. how do you do the same with PowerShell?
mqh7