Since IIRC Shortcuts is actually pretty clunky, it's probably easier to use Control Center to toggle grayscale, which is possible after you add the control named "accessibility shortcuts" using {settings > control center}. That is what I use.
On iOS, you can also set up the “accessibility shortcut” (settings -> accessibility -> accessibility shortcut), which lets you triple-click the home button to enable it.
You can also create automations to turn grayscale back off for apps that need it. I have ones for maps, photos and whatsapp (since people send a lot of pics in my group). They run when the app is activated/deactivated.
https://www.icloud.com/shortcuts/371d5ced520d40e984d626ae304...