These commands are entered while the device is running. Not via fastboot.
They are ADB commands.
adb devices
adb shell pm compile -a -f --full
adb shell reboot
The "USB debugging" and "USB debugging (Security settings)" functions must be enabled in the "developer options" settings.