# Check if profile already exists:
Test-Path $profile
# Create a profile if above returns false:
New-Item -path $profile -type file –force
# Profile created at below path, ready for editing:
C:\Users\<username>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1