Recently moved to a new Windows workstation, new user profile, the works. It still amazes me how quickly you get used to things just being where you want them to be. Because you have set them up that way. Anyway had to create a new Powershell profile file on this new workstation. I have found this to be the quickest and easiest way to do so. From powershell of course.
WARNING: This command will overwrite the existing file if it already exists!
New-Item -Path $PROFILE -Force -ItemType File
$PROFILE is variable that is automatically available in Powershell. Therefore is not requirement to declare or define it before hand.
To be safer I could of course add a test-path to ensure I do not accidentally overwrite an existing file, like so:
if(!(Test-path -path $PROFILE)) { New-Item -Path $PROFILE -Force -ItemType File }