I'd like to override the default pwd alias to return just the exact Path, and the change should only occur within the script. Typically, the pwd (Path only) it can be achieved with the following command:
(Get-Location).Path
How can I set this as the new default pwd alias?