The PROJECTDEFINE function doesn't work on grid stacks.
The PROJECTDEFINE function, like all projection commands, does not work with stacks.
Solution or Workaround
The projection of a stack is taken from the first added grid that has a defined projection.
- Create a new stack.
- Make sure the first grid you add has the intended projection.