use the normal ingame commands, just type a higher number!
formula for enchantments: /enchant <targets> <enchantment> [level]
enchant example: /enchant @s minecraft:sharpness max (while holding a sword)
formula for potion effects: /effect give <targets> <effect> [seconds|infinite] [amplifier] [hideParticles]
effect example: /effect give @s minecraft:speed infinite 256
you'll be able to use Tab when you start typing and they'll all show up, so don't worry about knowing all the names :)

