In most cases, the settings you choose in Pages, Numbers, or Keynote override the system setting on your device. Some iWork settings are similar to other settings on your iPhone, iPad, or Mac. If you change a setting in another menu, it changes your auto-correction settings too. Some options might also be available in other menus within iWork. If you are using iCloud Keychain, each app’s settings are shared across all your Apple products signed into your iCloud account. Use the auto-correction settings to customize how Pages, Numbers, and Keynote handle spelling and formatting by selecting and deselecting the available options. Right Click on a PS1 file, Select the SendTo context option > Select the Powershell shortcut. You should now be able to right click on a PS1 script.
On Mac, in Pages, Numbers, or Keynote choose > Preferences from the menu bar, then choose Auto-Correction. Move the Powershell.exe shortcut to the Sendto folder.On iPhone or iPad, open a document in Pages, Numbers, or Keynote, tap the More button, tap Settings, then tap Auto-Correction.